mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
[gui] send: include watch-only
For wallets with WALLET_FLAG_DISABLE_PRIVATE_KEYS.
This commit is contained in:
parent
40537f0909
commit
848f889208
1 changed files with 5 additions and 0 deletions
|
@ -611,6 +611,9 @@ void SendCoinsDialog::useAvailableBalance(SendCoinsEntry* entry)
|
||||||
coin_control = *CoinControlDialog::coinControl();
|
coin_control = *CoinControlDialog::coinControl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Include watch-only for wallets without private key
|
||||||
|
coin_control.fAllowWatchOnly = model->privateKeysDisabled();
|
||||||
|
|
||||||
// Calculate available amount to send.
|
// Calculate available amount to send.
|
||||||
CAmount amount = model->wallet().getAvailableBalance(coin_control);
|
CAmount amount = model->wallet().getAvailableBalance(coin_control);
|
||||||
for (int i = 0; i < ui->entries->count(); ++i) {
|
for (int i = 0; i < ui->entries->count(); ++i) {
|
||||||
|
@ -663,6 +666,8 @@ void SendCoinsDialog::updateCoinControlState(CCoinControl& ctrl)
|
||||||
// Either custom fee will be used or if not selected, the confirmation target from dropdown box
|
// Either custom fee will be used or if not selected, the confirmation target from dropdown box
|
||||||
ctrl.m_confirm_target = getConfTargetForIndex(ui->confTargetSelector->currentIndex());
|
ctrl.m_confirm_target = getConfTargetForIndex(ui->confTargetSelector->currentIndex());
|
||||||
ctrl.m_signal_bip125_rbf = ui->optInRBF->isChecked();
|
ctrl.m_signal_bip125_rbf = ui->optInRBF->isChecked();
|
||||||
|
// Include watch-only for wallets without private key
|
||||||
|
ctrl.fAllowWatchOnly = model->privateKeysDisabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SendCoinsDialog::updateSmartFeeLabel()
|
void SendCoinsDialog::updateSmartFeeLabel()
|
||||||
|
|
Loading…
Add table
Reference in a new issue