diff --git a/electrum/gui/qml/components/Pin.qml b/electrum/gui/qml/components/Pin.qml index 3ab7d1af0..663c18281 100644 --- a/electrum/gui/qml/components/Pin.qml +++ b/electrum/gui/qml/components/Pin.qml @@ -65,6 +65,14 @@ ElDialog { } } + onAccepted: result = Dialog.Accepted + onRejected: result = Dialog.Rejected + onClosed: { + if (!root.result) { + root.reject() // make sure we reject the authed fn() + } + } + header: GridLayout { columns: 2 rowSpacing: 0