git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Reset unit to default when clearing the field, to prevent confusion
[novacoin.git]
/
src
/
qt
/
bitcoinamountfield.cpp
diff --git
a/src/qt/bitcoinamountfield.cpp
b/src/qt/bitcoinamountfield.cpp
index
7fe28f9
..
f1b4e9f
100644
(file)
--- 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()