diff options
author | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-03-16 15:54:24 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> | 2015-03-16 15:38:37 +0000 |
commit | 60ac5957d34b673c8e851c7b5b01b9cc0b1f00d8 (patch) | |
tree | 3609294ed2866716258147b1f3f10439b3180c6a /src/corelib/io/qfile.cpp | |
parent | 8fe016158fb4a9f96d97ec2f2617e76d753c6a9f (diff) |
iOS: stop listening for keyboard visibility after QIOSMenu::dismiss()
We used to stop listening for keyboard visibility when quipickerview
was deallocated. The problem with that approach is that we don't
have a guarantee for when dealloc gets called. So what can happen
is that we get a call from Qt to dismiss the menu. That causes us
to close the keyboard, which will trigger the notification, which
will call dismiss recursively. This will hit our assert checking
if we have a valid picker view.
This patch will unsubscribe to the notification explicitly upon a
call to dismiss, to avoid recursive dismiss calls.
Change-Id: If1efa3438037e00a02bc186fdcb6c0b3d3d595e4
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/qfile.cpp')
0 files changed, 0 insertions, 0 deletions