diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-12-23 09:28:21 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-12-23 09:28:21 -0500 |
| commit | 632d82ac955995ef0144ab61323cbfb4039a5a54 (patch) | |
| tree | 793007de4a85bf365940869d04c4c0fbb73d30a6 | |
| parent | 3fb775de2883fa40e4270271a82cf2434ee1c0e4 (diff) | |
| parent | c5785ed1958d3faece9916cf0ef7d41cba187823 (diff) | |
| download | monzero-gui-632d82ac955995ef0144ab61323cbfb4039a5a54.tar.gz monzero-gui-632d82ac955995ef0144ab61323cbfb4039a5a54.tar.xz monzero-gui-632d82ac955995ef0144ab61323cbfb4039a5a54.zip | |
Merge pull request #2640
c5785ed main: fix wallet lock is unlocked without password (selsta)
| -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(); } |
