diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 58de55ba0..e621b1169 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -777,7 +777,9 @@ void Dialog::focusInEvent(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."; setVisible(false); }