aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinamountfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/bitcoinamountfield.cpp')
-rw-r--r--src/qt/bitcoinamountfield.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
index d545dc52e8..f9df91b333 100644
--- a/src/qt/bitcoinamountfield.cpp
+++ b/src/qt/bitcoinamountfield.cpp
@@ -55,6 +55,12 @@ void BitcoinAmountField::setText(const QString &text)
}
}
+void BitcoinAmountField::clear()
+{
+ amount->clear();
+ decimals->clear();
+}
+
bool BitcoinAmountField::validate()
{
bool valid = true;