iOS: check if qApp is still valid before accessing it

When the application quits, the iOS plugin can be told
to delete after qApp has been set to null. So we
need to add a check for this, to avoid error messages.

Change-Id: I687e0b26e0c54fdd5a8539fe0f31b2e756ea92d8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Richard Moe Gustavsen 2016-06-15 14:07:33 +02:00 committed by Jake Petroules
parent 6370c3aa71
commit b00565bc28

View File

@ -994,7 +994,8 @@ QIOSTextInputOverlay::QIOSTextInputOverlay()
QIOSTextInputOverlay::~QIOSTextInputOverlay()
{
disconnect(qApp, 0, this, 0);
if (qApp)
disconnect(qApp, 0, this, 0);
}
void QIOSTextInputOverlay::updateFocusObject()