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:
parent
6370c3aa71
commit
b00565bc28
@ -994,7 +994,8 @@ QIOSTextInputOverlay::QIOSTextInputOverlay()
|
||||
|
||||
QIOSTextInputOverlay::~QIOSTextInputOverlay()
|
||||
{
|
||||
disconnect(qApp, 0, this, 0);
|
||||
if (qApp)
|
||||
disconnect(qApp, 0, this, 0);
|
||||
}
|
||||
|
||||
void QIOSTextInputOverlay::updateFocusObject()
|
||||
|
Loading…
x
Reference in New Issue
Block a user