From e511701c74506dcd9404472267ca1e8510d60cc8 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 23 Feb 2023 20:44:25 +0100 Subject: [PATCH] qml: ElDialog assure close behavior is consistent with allowClose property --- electrum/gui/qml/components/controls/ElDialog.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electrum/gui/qml/components/controls/ElDialog.qml b/electrum/gui/qml/components/controls/ElDialog.qml index dc4e8bc72..ed7865bc1 100644 --- a/electrum/gui/qml/components/controls/ElDialog.qml +++ b/electrum/gui/qml/components/controls/ElDialog.qml @@ -12,6 +12,10 @@ Dialog { close() } + closePolicy: allowClose + ? Popup.CloseOnEscape | Popup.CloseOnPressOutside + : Popup.NoAutoClose + onOpenedChanged: { if (opened) { app.activeDialogs.push(abstractdialog) @@ -48,6 +52,7 @@ Dialog { leftPadding: constants.paddingXLarge topPadding: constants.paddingXLarge bottomPadding: constants.paddingXLarge + rightPadding: constants.paddingXLarge font.bold: true font.pixelSize: constants.fontSizeMedium }