File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -611,6 +611,9 @@ void SendCoinsDialog::useAvailableBalance(SendCoinsEntry* entry)
611
611
coin_control = *CoinControlDialog::coinControl ();
612
612
}
613
613
614
+ // Include watch-only for wallets without private key
615
+ coin_control.fAllowWatchOnly = model->privateKeysDisabled ();
616
+
614
617
// Calculate available amount to send.
615
618
CAmount amount = model->wallet ().getAvailableBalance (coin_control);
616
619
for (int i = 0 ; i < ui->entries ->count (); ++i) {
@@ -663,6 +666,8 @@ void SendCoinsDialog::updateCoinControlState(CCoinControl& ctrl)
663
666
// Either custom fee will be used or if not selected, the confirmation target from dropdown box
664
667
ctrl.m_confirm_target = getConfTargetForIndex (ui->confTargetSelector ->currentIndex ());
665
668
ctrl.m_signal_bip125_rbf = ui->optInRBF ->isChecked ();
669
+ // Include watch-only for wallets without private key
670
+ ctrl.fAllowWatchOnly = model->privateKeysDisabled ();
666
671
}
667
672
668
673
void SendCoinsDialog::updateSmartFeeLabel ()
You can’t perform that action at this time.
0 commit comments