diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 9edf87fcdf..69a2ae9145 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -36,7 +36,7 @@ import QtQuick.Controls.Styles 1.4 Dialog { id: root - readonly property alias password: passwordInput.text + property alias password: passwordInput.text standardButtons: StandardButton.Ok + StandardButton.Cancel ColumnLayout { id: column diff --git a/pages/Settings.qml b/pages/Settings.qml index d46186af51..8e73b8fe24 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -72,11 +72,11 @@ Rectangle { id: settingsPasswordDialog standardButtons: StandardButton.Ok + StandardButton.Cancel onAccepted: { - if(appWindow.password == settingsPasswordDialog.password){ + if(appWindow.password === settingsPasswordDialog.password){ memoTextInput.text = currentWallet.seed showSeedButton.visible = false } - + settingsPasswordDialog.password = "" } onRejected: { diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml index 097fb58a3d..43200304d3 100644 --- a/wizard/WizardMain.qml +++ b/wizard/WizardMain.qml @@ -124,6 +124,9 @@ Rectangle { // protecting wallet with password settings.wallet.setPassword(settings.wallet_password); + // Store password in session to be able to use password protected functions (e.g show seed) + appWindow.password = settings.wallet_password + // saving wallet_filename; settings['wallet_filename'] = new_wallet_filename;