diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-11-26 13:05:37 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-11-27 12:22:18 +0000 |
commit | 180f8c92ef6d64c50efbedf643d66ca8ea6df1f2 (patch) | |
tree | 64f61cf81fa09707081352f80bac5b17eb9db17c /src/virtualkeyboard/3rdparty | |
parent | 8177619e003eaf6097a27bc9e3abd7e8fcdd7d1d (diff) |
Fix crash on vkb when exiting Qt with QCoreApplicaton::quit()
This change fixes an issue that caused crash on Windows desktop
integration when the application was shutdown using the
QCoreApplication::quit() method.
The crash was caused by too late cleanup of the desktop input
panel. Now the virtual keyboard view is closed upon
QCoreApplication::aboutToQuit() signal instead of
QCoreApplication::lastWindowClosed() signal. This seems to work
also in case where the application is shutdown by closing all
the windows.
A workaround for the issue is to connect the
QCoreApplication::lastWindowClosed() signal to
the QCoreApplication::quit() instead of invoking it directly, and then
closing all the windows upon exit. This allows the virtual keyboard
to cleanup its own view before it's too late.
Task-number: QTRD-3747
Change-Id: Ib0915bdab408f85635370205a9504ff68c3a38cb
Reviewed-by: Milla Pohjanheimo <milla.pohjanheimo@theqtcompany.com>
Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/3rdparty')
0 files changed, 0 insertions, 0 deletions