Skip to content

Commit 37dcf16

Browse files
committed
qt, refactor: Emit WalletView::encryptionStatusChanged signal directly
1 parent 7d0d4c0 commit 37dcf16

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/qt/walletview.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void WalletView::setWalletModel(WalletModel *_walletModel)
118118

119119
// Handle changes in encryption status
120120
connect(_walletModel, &WalletModel::encryptionStatusChanged, this, &WalletView::encryptionStatusChanged);
121-
updateEncryptionStatus();
121+
Q_EMIT encryptionStatusChanged();
122122

123123
// update HD status
124124
Q_EMIT hdEnabledStatusChanged();
@@ -211,11 +211,6 @@ void WalletView::showOutOfSyncWarning(bool fShow)
211211
overviewPage->showOutOfSyncWarning(fShow);
212212
}
213213

214-
void WalletView::updateEncryptionStatus()
215-
{
216-
Q_EMIT encryptionStatusChanged();
217-
}
218-
219214
void WalletView::encryptWallet()
220215
{
221216
if(!walletModel)
@@ -224,7 +219,7 @@ void WalletView::encryptWallet()
224219
dlg.setModel(walletModel);
225220
dlg.exec();
226221

227-
updateEncryptionStatus();
222+
Q_EMIT encryptionStatusChanged();
228223
}
229224

230225
void WalletView::backupWallet()

src/qt/walletview.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ public Q_SLOTS:
103103
/** Show used receiving addresses */
104104
void usedReceivingAddresses();
105105

106-
/** Re-emit encryption status signal */
107-
void updateEncryptionStatus();
108-
109106
/** Show progress dialog e.g. for rescan */
110107
void showProgress(const QString &title, int nProgress);
111108

0 commit comments

Comments
 (0)