mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
show an error if amount is not valid (either the amount or decimals is empty)
This commit is contained in:
@@ -48,10 +48,10 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||
|
||||
valid = GUIUtil::parseMoney(payAmount, &payAmountParsed);
|
||||
|
||||
if(!valid)
|
||||
if(!valid || payAmount.isEmpty())
|
||||
{
|
||||
QMessageBox::warning(this, tr("Send Coins"),
|
||||
tr("The amount to pay must be a valid number."),
|
||||
tr("Must fill in an amount to pay."),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user