mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
qt, refactor: Emit WalletView::encryptionStatusChanged signal directly
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user