File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ void AskPassphraseDialog::accept() {
129
129
encryption_reminder + " </b></qt>" );
130
130
} else {
131
131
assert (model != nullptr );
132
- if (model->setWalletEncrypted (true , newpass1)) {
132
+ if (model->setWalletEncrypted (newpass1)) {
133
133
QMessageBox::warning (
134
134
this , tr (" Wallet encrypted" ),
135
135
" <qt>" + tr (" Your wallet is now encrypted. " ) +
Original file line number Diff line number Diff line change @@ -338,12 +338,8 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const {
338
338
}
339
339
}
340
340
341
- bool WalletModel::setWalletEncrypted (bool encrypted,
342
- const SecureString &passphrase) {
343
- if (encrypted) {
344
- return m_wallet->encryptWallet (passphrase);
345
- }
346
- return false ;
341
+ bool WalletModel::setWalletEncrypted (const SecureString &passphrase) {
342
+ return m_wallet->encryptWallet (passphrase);
347
343
}
348
344
349
345
bool WalletModel::setWalletLocked (bool locked, const SecureString &passPhrase) {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class WalletModel : public QObject {
104
104
SendCoinsReturn sendCoins (WalletModelTransaction &transaction);
105
105
106
106
// Wallet encryption
107
- bool setWalletEncrypted (bool encrypted, const SecureString &passphrase);
107
+ bool setWalletEncrypted (const SecureString &passphrase);
108
108
// Passphrase only needed when unlocking
109
109
bool setWalletLocked (bool locked,
110
110
const SecureString &passPhrase = SecureString());
You can’t perform that action at this time.
0 commit comments