Skip to content

Commit

Permalink
qt, wallet: Drop unused parameter in Wallet{Frame|View}::encryptWallet
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hebasto authored and PiRK committed Dec 23, 2021
1 parent 01d8946 commit ca88506
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/qt/walletframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ void WalletFrame::gotoLoadPSBT() {
}
}

void WalletFrame::encryptWallet(bool status) {
void WalletFrame::encryptWallet() {
WalletView *walletView = currentWalletView();
if (walletView) {
walletView->encryptWallet(status);
walletView->encryptWallet();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Q_SLOTS:
void gotoLoadPSBT();

/** Encrypt the wallet */
void encryptWallet(bool status);
void encryptWallet();
/** Backup the wallet */
void backupWallet();
/** Change encrypted wallet passphrase */
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void WalletView::updateEncryptionStatus() {
Q_EMIT encryptionStatusChanged();
}

void WalletView::encryptWallet(bool status) {
void WalletView::encryptWallet() {
if (!walletModel) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletview.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Q_SLOTS:
*/
void processNewTransaction(const QModelIndex &parent, int start, int end);
/** Encrypt the wallet */
void encryptWallet(bool status);
void encryptWallet();
/** Backup the wallet */
void backupWallet();
/** Change encrypted wallet passphrase */
Expand Down

0 comments on commit ca88506

Please sign in to comment.