diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2024-02-06 10:59:17 +0100 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2024-02-13 09:40:11 +0000 |
commit | 211ae491308163cdc1c6ce776c9d706792174610 (patch) | |
tree | e5a6ec6a8f099e9afadaa9e1ff51607fb79a2e84 | |
parent | ba536a5e9a23bf419edeb1651132a896acaabbef (diff) |
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 <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml index 4da26cf494..acf805928e 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 |