Skip to content

Commit fdb8dc8

Browse files
committed
gui: Show watchonly balance only for Legacy wallets
Descriptor wallets do not have a watchonly balance as wallets are designated watchonly or not. Thus we should not be displaying the empty watchonly balance for descriptor wallets.
1 parent dc9d662 commit fdb8dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ void SendCoinsDialog::setBalance(const interfaces::WalletBalances& balances)
703703
CAmount balance = balances.balance;
704704
if (model->wallet().hasExternalSigner()) {
705705
ui->labelBalanceName->setText(tr("External balance:"));
706-
} else if (model->wallet().privateKeysDisabled()) {
706+
} else if (model->wallet().isLegacy() && model->wallet().privateKeysDisabled()) {
707707
balance = balances.watch_only_balance;
708708
ui->labelBalanceName->setText(tr("Watch-only balance:"));
709709
}

0 commit comments

Comments
 (0)