Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsentry.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | if (!model->validateAddress(ui->payTo->text())) { | ||||
retval = false; | retval = false; | ||||
} | } | ||||
if (!ui->payAmount->validate()) { | if (!ui->payAmount->validate()) { | ||||
retval = false; | retval = false; | ||||
} | } | ||||
// Sending a zero amount is invalid | // Sending a zero amount is invalid | ||||
if (ui->payAmount->value(0) <= 0) { | if (ui->payAmount->value(0) <= Amount(0)) { | ||||
ui->payAmount->setValid(false); | ui->payAmount->setValid(false); | ||||
retval = false; | retval = false; | ||||
} | } | ||||
// Reject dust outputs: | // Reject dust outputs: | ||||
if (retval && GUIUtil::isDust(ui->payTo->text(), ui->payAmount->value())) { | if (retval && GUIUtil::isDust(ui->payTo->text(), ui->payAmount->value())) { | ||||
ui->payAmount->setValid(false); | ui->payAmount->setValid(false); | ||||
retval = false; | retval = false; | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |