From 211ae491308163cdc1c6ce776c9d706792174610 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Tue, 6 Feb 2024 10:59:17 +0100 Subject: [PATCH] QmlDesigner: Close PopupDialog on QtDS inactive Close a PopupDialog whenever the main application becomes inactive by e.g. focusing another app. This prevents the PopupDialog being drawn on top of that any other application. Task-number: QDS-11870 Change-Id: I2d5dce4a7a54d43382010dedee3ba214a70d2eb8 Reviewed-by: Qt CI Patch Build Bot Reviewed-by: Tim Jenssen --- .../imports/StudioControls/PopupDialog.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml index 4da26cf4940..acf805928e7 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml @@ -286,8 +286,10 @@ QtObject { enabled: root.visible function onFocusWindowChanged(focusWindow) { - if (!focusWindow) + if (!focusWindow) { + root.close() return + } if (root.keepOpen) return