Skip to content

Commit 4eb7749

Browse files
committed
Merge pull request #4571
eb25d4c WizardController: set password before storing wallet (selsta)
2 parents 57f6ae2 + eb25d4c commit 4eb7749

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

wizard/WizardController.qml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,6 @@ Rectangle {
378378
console.log("Removing temporary wallet: " + wizardController.tmpWalletFilename)
379379
oshelper.removeTemporaryWallet(wizardController.tmpWalletFilename)
380380

381-
// protecting wallet with password
382-
wizardController.m_wallet.setPassword(wizardController.walletOptionsPassword);
383-
384381
// save to persistent settings
385382
persistentSettings.account_name = wizardController.walletOptionsName
386383
persistentSettings.wallet_path = wizardController.m_wallet.path;
@@ -399,6 +396,7 @@ Rectangle {
399396
new_wallet_filename = appWindow.accountsDir + new_wallet_filename;
400397
}
401398
console.log("saving new wallet to", new_wallet_filename);
399+
wizardController.m_wallet.setPassword(wizardController.walletOptionsPassword);
402400
wizardController.m_wallet.storeAsync(handler, new_wallet_filename);
403401
}
404402

0 commit comments

Comments
 (0)