mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
show an error if amount is not valid (either the amount or decimals is empty)
This commit is contained in:
@@ -49,6 +49,8 @@ void BitcoinAmountField::setText(const QString &text)
|
||||
|
||||
QString BitcoinAmountField::text() const
|
||||
{
|
||||
if(amount->text().isEmpty() || decimals->text().isEmpty())
|
||||
return QString();
|
||||
return amount->text() + QString(".") + decimals->text();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user