From 05f0f82bdc345c63bd2482111f05282861d97cfa Mon Sep 17 00:00:00 2001 From: dsc Date: Mon, 25 Feb 2019 16:15:52 +0100 Subject: [PATCH] Save wallet password --- wizard/WizardController.qml | 2 +- wizard/WizardCreateWallet2.qml | 2 ++ wizard/WizardRestoreWallet2.qml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index 87d96f70..bb073b66 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -310,7 +310,7 @@ Rectangle { oshelper.removeTemporaryWallet(wizardController.tmpWalletFilename) // protecting wallet with password - wizardController.m_wallet.setPassword(walletOptionsPassword); + wizardController.m_wallet.setPassword(wizardController.walletOptionsPassword); // Store password in session to be able to use password protected functions (e.g show seed) appWindow.walletPassword = walletOptionsPassword diff --git a/wizard/WizardCreateWallet2.qml b/wizard/WizardCreateWallet2.qml index 3e304f90..6a3d3284 100644 --- a/wizard/WizardCreateWallet2.qml +++ b/wizard/WizardCreateWallet2.qml @@ -69,6 +69,8 @@ Rectangle { } } onNextClicked: { + wizardController.walletOptionsPassword = passwordFields.password; + if(appWindow.walletMode === 0 || appWindow.walletMode === 1){ wizardController.fetchRemoteNodes(function(){ wizardStateView.state = "wizardCreateWallet4"; diff --git a/wizard/WizardRestoreWallet2.qml b/wizard/WizardRestoreWallet2.qml index 1b75672a..bf569cdf 100644 --- a/wizard/WizardRestoreWallet2.qml +++ b/wizard/WizardRestoreWallet2.qml @@ -68,6 +68,8 @@ Rectangle { wizardStateView.state = "wizardRestoreWallet1"; } onNextClicked: { + wizardController.walletOptionsPassword = passwordFields.password; + if(appWindow.walletMode === 0 || appWindow.walletMode === 1){ wizardController.fetchRemoteNodes(function(){ wizardStateView.state = "wizardRestoreWallet4";