diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-26 13:31:59 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-26 13:31:59 +0200 |
| commit | 83c8d678aaf01e24cfbfdad23ed31591a3666638 (patch) | |
| tree | 3aa04cd8a65d171de6fa81adf39195a44b264f04 /src/qt/bitcoinamountfield.cpp | |
| parent | refuse to format nor parse invalid units (diff) | |
| download | discoin-83c8d678aaf01e24cfbfdad23ed31591a3666638.tar.xz discoin-83c8d678aaf01e24cfbfdad23ed31591a3666638.zip | |
Reset unit to default when clearing the field, to prevent confusion
Diffstat (limited to 'src/qt/bitcoinamountfield.cpp')
| -rw-r--r-- | src/qt/bitcoinamountfield.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index 7fe28f9a1..f1b4e9fdc 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() |