aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinunits.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-26 13:11:28 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-26 13:27:33 +0200
commitf2b10f6469dd53bbd51f045b1ae88dfb392fcd13 (patch)
tree22fecd8e90bac2817254a1445ed8bf5885762f04 /src/qt/bitcoinunits.h
parent587e52855a4c6c4f672ecec28ab9a029d4e4f850 (diff)
refuse to format nor parse invalid units
Diffstat (limited to 'src/qt/bitcoinunits.h')
-rw-r--r--src/qt/bitcoinunits.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoinunits.h b/src/qt/bitcoinunits.h
index 18b623517c..4dfdbea044 100644
--- a/src/qt/bitcoinunits.h
+++ b/src/qt/bitcoinunits.h
@@ -22,6 +22,8 @@ public:
/// Static API
// Get list of units, for dropdown box
static QList<Unit> availableUnits();
+ // Is unit ID valid?
+ static bool valid(int unit);
// Short name
static QString name(int unit);
// Longer description