Don't hide when focus moves to a child window.

REVIEW:117897
This commit is contained in:
Eike Hein 2014-04-30 15:03:32 +02:00
parent af5a855da4
commit 000d49463b

View File

@ -777,7 +777,9 @@ void Dialog::focusInEvent(QFocusEvent *ev)
void Dialog::focusOutEvent(QFocusEvent *ev) void Dialog::focusOutEvent(QFocusEvent *ev)
{ {
if (d->hideOnWindowDeactivate) { const QWindow *focusWindow = QGuiApplication::focusWindow();
if (d->hideOnWindowDeactivate && !(focusWindow && focusWindow->isActive() && isAncestorOf(focusWindow))) {
qDebug() << "DIALOG: hiding dialog."; qDebug() << "DIALOG: hiding dialog.";
setVisible(false); setVisible(false);
} }