From 83c8d678aaf01e24cfbfdad23ed31591a3666638 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Tue, 26 Jul 2011 13:31:59 +0200 Subject: [PATCH] Reset unit to default when clearing the field, to prevent confusion --- src/qt/bitcoinamountfield.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index 7fe28f9a..f1b4e9fd 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()