aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsentry.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-25 21:35:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-25 21:38:54 +0200
commite285ffcd052a42a6e870f093e7663671a2a3b147 (patch)
treed9c5237ba0d2c6617d6202cbf1fda666a0b33d78 /src/qt/sendcoinsentry.cpp
parentbbae0fc9efa6eb7155d679a1cc3eeb451d594d14 (diff)
preparations for multiple unit (uBTC, mBTC, BTC) support, fix amount entry issue
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
-rw-r--r--src/qt/sendcoinsentry.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp
index 2d4fe9b123..9fc041111f 100644
--- a/src/qt/sendcoinsentry.cpp
+++ b/src/qt/sendcoinsentry.cpp
@@ -1,6 +1,7 @@
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
+#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
@@ -103,7 +104,7 @@ SendCoinsRecipient SendCoinsEntry::getValue()
rv.address = ui->payTo->text();
rv.label = ui->addAsLabel->text();
- GUIUtil::parseMoney(ui->payAmount->text(), &rv.amount);
+ BitcoinUnits::parse(BitcoinUnits::BTC, ui->payAmount->text(), &rv.amount);
return rv;
}