diff options
| author | selsta <selsta@sent.at> | 2019-12-20 02:20:12 +0100 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-12-20 02:20:12 +0100 |
| commit | c5785ed1958d3faece9916cf0ef7d41cba187823 (patch) | |
| tree | 08ea2a347ebdf6422297d502a9f4db1a3701b140 | |
| parent | 500c7ec82e1d0d8b0f1fb45e2649a7795d4e5a22 (diff) | |
| download | monzero-gui-c5785ed1958d3faece9916cf0ef7d41cba187823.tar.gz monzero-gui-c5785ed1958d3faece9916cf0ef7d41cba187823.tar.xz monzero-gui-c5785ed1958d3faece9916cf0ef7d41cba187823.zip | |
main: fix wallet lock is unlocked without password
| -rw-r--r-- | main.qml | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2044,6 +2044,7 @@ ApplicationWindow { if(rootItem.state !== "normal") return; if(!persistentSettings.lockOnUserInActivity) return; if(passwordDialog.visible) return; + var inputDialogVisible = inputDialog && inputDialog.visible // prompt password after X seconds of inactivity var epoch = Math.floor((new Date).getTime() / 1000); @@ -2056,9 +2057,11 @@ ApplicationWindow { } else { passwordDialog.showError(qsTr("Wrong password")); } + if (inputDialogVisible) inputDialog.open(inputDialog.inputText) } passwordDialog.onRejectedCallback = function() { appWindow.showWizard(); } + if (inputDialogVisible) inputDialog.close() passwordDialog.open(); } |
