Skip to content

Commit 86cdd24

Browse files
committed
fix: pass correct mode to AskPassphraseDialog when unlocking wallet for mixing only
1 parent 8d6cfd7 commit 86cdd24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/walletview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void WalletView::unlockWallet(bool fForMixingOnly)
333333
{
334334
// Unlock wallet when requested by wallet model
335335
if (walletModel->getEncryptionStatus() == WalletModel::Locked || walletModel->getEncryptionStatus() == WalletModel::UnlockedForMixingOnly) {
336-
AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
336+
AskPassphraseDialog dlg(fForMixingOnly ? AskPassphraseDialog::UnlockMixing : AskPassphraseDialog::Unlock, this);
337337
dlg.setModel(walletModel);
338338
// A modal dialog must be synchronous here as expected
339339
// in the WalletModel::requestUnlock() function.

0 commit comments

Comments
 (0)