diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-11 19:57:10 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-08-14 19:19:03 +0300 |
commit | 37dcf161d3dd1f7862a67bec1e8f2887cbd6de90 (patch) | |
tree | 4a91da5a3ac0eb592b07f0a2a4c4cf0a57e67f6e /src/qt | |
parent | 7d0d4c04903cafade32be3bf2bf1cad3f33c6c03 (diff) |
qt, refactor: Emit WalletView::encryptionStatusChanged signal directly
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/walletview.cpp | 9 | ||||
-rw-r--r-- | src/qt/walletview.h | 3 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp index 2326af80b6..725015a447 100644 --- a/src/qt/walletview.cpp +++ b/src/qt/walletview.cpp @@ -118,7 +118,7 @@ void WalletView::setWalletModel(WalletModel *_walletModel) // Handle changes in encryption status connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged); - updateEncryptionStatus(); + Q_EMIT encryptionStatusChanged(); // update HD status Q_EMIT hdEnabledStatusChanged(); @@ -211,11 +211,6 @@ void WalletView::showOutOfSyncWarning(bool fShow) overviewPage->showOutOfSyncWarning(fShow); } -void WalletView::updateEncryptionStatus() -{ - Q_EMIT encryptionStatusChanged(); -} - void WalletView::encryptWallet() { if(!walletModel) @@ -224,7 +219,7 @@ void WalletView::encryptWallet() dlg.setModel(walletModel); dlg.exec(); - updateEncryptionStatus(); + Q_EMIT encryptionStatusChanged(); } void WalletView::backupWallet() diff --git a/src/qt/walletview.h b/src/qt/walletview.h index 5c42a9ffc0..5d2fac425e 100644 --- a/src/qt/walletview.h +++ b/src/qt/walletview.h @@ -103,9 +103,6 @@ public Q_SLOTS: /** Show used receiving addresses */ void usedReceivingAddresses(); - /** Re-emit encryption status signal */ - void updateEncryptionStatus(); - /** Show progress dialog e.g. for rescan */ void showProgress(const QString &title, int nProgress); |