qt, refactor: Emit WalletView::encryptionStatusChanged signal directly

This commit is contained in:
Hennadii Stepanov 2021-08-11 19:57:10 +03:00
parent 7d0d4c0490
commit 37dcf161d3
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
2 changed files with 2 additions and 10 deletions

View file

@ -118,7 +118,7 @@ void WalletView::setWalletModel(WalletModel *_walletModel)
// Handle changes in encryption status // Handle changes in encryption status
connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged); connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged);
updateEncryptionStatus(); Q_EMIT encryptionStatusChanged();
// update HD status // update HD status
Q_EMIT hdEnabledStatusChanged(); Q_EMIT hdEnabledStatusChanged();
@ -211,11 +211,6 @@ void WalletView::showOutOfSyncWarning(bool fShow)
overviewPage->showOutOfSyncWarning(fShow); overviewPage->showOutOfSyncWarning(fShow);
} }
void WalletView::updateEncryptionStatus()
{
Q_EMIT encryptionStatusChanged();
}
void WalletView::encryptWallet() void WalletView::encryptWallet()
{ {
if(!walletModel) if(!walletModel)
@ -224,7 +219,7 @@ void WalletView::encryptWallet()
dlg.setModel(walletModel); dlg.setModel(walletModel);
dlg.exec(); dlg.exec();
updateEncryptionStatus(); Q_EMIT encryptionStatusChanged();
} }
void WalletView::backupWallet() void WalletView::backupWallet()

View file

@ -103,9 +103,6 @@ public Q_SLOTS:
/** Show used receiving addresses */ /** Show used receiving addresses */
void usedReceivingAddresses(); void usedReceivingAddresses();
/** Re-emit encryption status signal */
void updateEncryptionStatus();
/** Show progress dialog e.g. for rescan */ /** Show progress dialog e.g. for rescan */
void showProgress(const QString &title, int nProgress); void showProgress(const QString &title, int nProgress);