Skip to content

Commit

Permalink
fix: pass correct mode to AskPassphraseDialog when unlocking wallet f…
Browse files Browse the repository at this point in the history
…or mixing only
  • Loading branch information
UdjinM6 committed Feb 28, 2025
1 parent 8d6cfd7 commit 86cdd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/walletview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void WalletView::unlockWallet(bool fForMixingOnly)
{
// Unlock wallet when requested by wallet model
if (walletModel->getEncryptionStatus() == WalletModel::Locked || walletModel->getEncryptionStatus() == WalletModel::UnlockedForMixingOnly) {
AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
AskPassphraseDialog dlg(fForMixingOnly ? AskPassphraseDialog::UnlockMixing : AskPassphraseDialog::Unlock, this);
dlg.setModel(walletModel);
// A modal dialog must be synchronous here as expected
// in the WalletModel::requestUnlock() function.
Expand Down

0 comments on commit 86cdd24

Please sign in to comment.