Close popup windows when application state changes old/5.2
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Tue, 18 Feb 2014 16:13:48 +0000 (17:13 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 26 Feb 2014 13:21:11 +0000 (14:21 +0100)
commit76ec5710d544dd19ef13c467bfcb1e441af56499
tree4da522753bb36d0ec50be16f5f8ab99341439ebd
parent1c54d411ad6e98c3779a412750aec8b93d587872
Close popup windows when application state changes

Nobody is telling the popup to close. If it was, that was probably as a
side effect of the Qt::Popup flag on some platforms. Certainly not on
Windows.

We check for the application state as the application may use a popup
to signal the user about some event happening, and we don't want to close
the popup as soon as the user makes the application active again.

Task-number: QTBUG-36474
Change-Id: If41f7bec696105e3c7d8897e9af5fc075c7b8933
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/controls/qquickpopupwindow.cpp
src/controls/qquickpopupwindow_p.h