From 028bcadbac0edcc40c5f9866911154be8b5d4d7d Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Fri, 8 Nov 2019 16:58:16 -0500 Subject: [PATCH] Fix inverted close policy logic. --- src/ui/MainRootWindow.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/MainRootWindow.qml b/src/ui/MainRootWindow.qml index e37fc8352..8111f221a 100644 --- a/src/ui/MainRootWindow.qml +++ b/src/ui/MainRootWindow.qml @@ -153,6 +153,9 @@ ApplicationWindow { mainWindowDialog.dialogButtons = buttons mainWindowDialog.open() if(buttons & StandardButton.Cancel || buttons & StandardButton.Close || buttons & StandardButton.Discard || buttons & StandardButton.Abort || buttons & StandardButton.Ignore) { + mainWindowDialog.closePolicy = Popup.NoAutoClose; + mainWindowDialog.interactive = false; + } else { mainWindowDialog.closePolicy = Popup.CloseOnEscape | Popup.CloseOnPressOutside; mainWindowDialog.interactive = true; } -- 2.22.0