Skip to content

Commit ca88506

Browse files
hebastoPiRK
authored andcommitted
qt, wallet: Drop unused parameter in Wallet{Frame|View}::encryptWallet
Summary: This is a backport of [[bitcoin-core/gui#109 | core-gui#109]] [2/3] bitcoin-core/gui@f886a20 Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D10738
1 parent 01d8946 commit ca88506

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/qt/walletframe.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ void WalletFrame::gotoLoadPSBT() {
207207
}
208208
}
209209

210-
void WalletFrame::encryptWallet(bool status) {
210+
void WalletFrame::encryptWallet() {
211211
WalletView *walletView = currentWalletView();
212212
if (walletView) {
213-
walletView->encryptWallet(status);
213+
walletView->encryptWallet();
214214
}
215215
}
216216

src/qt/walletframe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Q_SLOTS:
8787
void gotoLoadPSBT();
8888

8989
/** Encrypt the wallet */
90-
void encryptWallet(bool status);
90+
void encryptWallet();
9191
/** Backup the wallet */
9292
void backupWallet();
9393
/** Change encrypted wallet passphrase */

src/qt/walletview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void WalletView::updateEncryptionStatus() {
346346
Q_EMIT encryptionStatusChanged();
347347
}
348348

349-
void WalletView::encryptWallet(bool status) {
349+
void WalletView::encryptWallet() {
350350
if (!walletModel) {
351351
return;
352352
}

src/qt/walletview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Q_SLOTS:
9898
*/
9999
void processNewTransaction(const QModelIndex &parent, int start, int end);
100100
/** Encrypt the wallet */
101-
void encryptWallet(bool status);
101+
void encryptWallet();
102102
/** Backup the wallet */
103103
void backupWallet();
104104
/** Change encrypted wallet passphrase */

0 commit comments

Comments
 (0)