aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-26 13:31:59 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-26 13:31:59 +0200
commit83c8d678aaf01e24cfbfdad23ed31591a3666638 (patch)
tree3aa04cd8a65d171de6fa81adf39195a44b264f04
parentf2b10f6469dd53bbd51f045b1ae88dfb392fcd13 (diff)
Reset unit to default when clearing the field, to prevent confusion
-rw-r--r--src/qt/bitcoinamountfield.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
index 7fe28f9a17..f1b4e9fdc3 100644
--- a/src/qt/bitcoinamountfield.cpp
+++ b/src/qt/bitcoinamountfield.cpp
@@ -66,6 +66,8 @@ void BitcoinAmountField::clear()
{
amount->clear();
decimals->clear();
+ // TODO: set default based on configuration
+ unit->setCurrentIndex(0);
}
bool BitcoinAmountField::validate()