mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
SendWidget: remove trailing zeroes pay-to-many amount
This commit is contained in:
parent
e49b5667bb
commit
1ba4600442
1 changed files with 3 additions and 3 deletions
|
@ -60,15 +60,15 @@ void SendWidget::currencyComboChanged(int index) {
|
|||
void SendWidget::addressEdited() {
|
||||
QVector<PartialTxOutput> outputs = ui->lineAddress->getOutputs();
|
||||
|
||||
bool freezeAmounts = outputs.size() > 0;
|
||||
bool freezeAmounts = !outputs.empty();
|
||||
|
||||
ui->lineAmount->setReadOnly(freezeAmounts);
|
||||
ui->lineAmount->setFrame(!freezeAmounts);
|
||||
ui->btnMax->setDisabled(freezeAmounts);
|
||||
ui->comboCurrencySelection->setDisabled(freezeAmounts);
|
||||
|
||||
if (outputs.size() > 0) {
|
||||
ui->lineAmount->setText(WalletManager::displayAmount(ui->lineAddress->getTotal()));
|
||||
if (!outputs.empty()) {
|
||||
ui->lineAmount->setText(WalletManager::displayAmount(ui->lineAddress->getTotal(), false));
|
||||
ui->comboCurrencySelection->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue