aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml
index 4bfc0614b4..594e115639 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/PopupDialog.qml
@@ -32,6 +32,8 @@ QtObject {
property rect __itemGlobal: Qt.rect(0, 0, 100, 100)
+ property bool keepOpen: false
+
signal closing(close: var)
function showGlobal() {
@@ -287,6 +289,9 @@ QtObject {
if (!focusWindow)
return
+ if (root.keepOpen)
+ return
+
if (focusWindow !== window && focusWindow.transientParent !== window)
root.close()
}