diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-10-28 18:43:42 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-10-28 18:44:55 +0200 |
commit | 4146a31ccbb012ff552f303113979b48c086532b (patch) | |
tree | ae5cb9b3962d4a4214a1a183d721a33861954bfe /src/qt/walletmodel.cpp | |
parent | f886a20b02094d657ddb3d792d561d50f2107f07 (diff) |
qt, wallet: Drop unused parameter in WalletModel::setWalletEncrypted
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r-- | src/qt/walletmodel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 6a3f903206..cad472b43b 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -313,12 +313,9 @@ WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const } } -bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphrase) +bool WalletModel::setWalletEncrypted(const SecureString& passphrase) { - if (encrypted) { - return m_wallet->encryptWallet(passphrase); - } - return false; + return m_wallet->encryptWallet(passphrase); } bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase) |