show an error if amount is not valid (either the amount or decimals is empty)

This commit is contained in:
Wladimir J. van der Laan
2011-06-30 17:32:19 +02:00
parent 6ed283946c
commit 929eb9dc6c
2 changed files with 4 additions and 2 deletions

View File

@@ -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();
}