aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionview.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-29 14:36:35 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-29 14:36:35 +0200
commitee014e5b10f5f65820ff056311051ff49813b294 (patch)
treed9c0dd04b021c2c828bf55ba6ff33d93d07b5276 /src/qt/transactionview.cpp
parentb5b1d1a66b9f418c9fb293cb1cc3eac09a711c4e (diff)
Full support for other units, add configuration option for default unit (used when displaying amounts)
Diffstat (limited to 'src/qt/transactionview.cpp')
-rw-r--r--src/qt/transactionview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 9c38934ad5..12fdc947d1 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -9,6 +9,7 @@
#include "csvmodelwriter.h"
#include "transactiondescdialog.h"
#include "editaddressdialog.h"
+#include "optionsmodel.h"
#include <QScrollBar>
#include <QComboBox>
@@ -227,7 +228,7 @@ void TransactionView::changedPrefix(const QString &prefix)
void TransactionView::changedAmount(const QString &amount)
{
qint64 amount_parsed = 0;
- if(BitcoinUnits::parse(BitcoinUnits::BTC, amount, &amount_parsed))
+ if(BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amount, &amount_parsed))
{
transactionProxyModel->setMinAmount(amount_parsed);
}