diff options
| author | Mark Friedenbach <[email protected]> | 2014-04-22 15:46:19 -0700 |
|---|---|---|
| committer | Mark Friedenbach <[email protected]> | 2014-09-26 15:42:04 -0700 |
| commit | a372168e77a8a195613a02983f2589252698bf0f (patch) | |
| tree | b300a5f7aa007645c6ba2bd708e7a962fab2894b /src/qt/optionsmodel.cpp | |
| parent | Merge pull request #4986 (diff) | |
| download | discoin-a372168e77a8a195613a02983f2589252698bf0f.tar.xz discoin-a372168e77a8a195613a02983f2589252698bf0f.zip | |
Use a typedef for monetary values
Diffstat (limited to 'src/qt/optionsmodel.cpp')
| -rw-r--r-- | src/qt/optionsmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index bd747faeb..cb80bd0e3 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -275,9 +275,9 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in #ifdef ENABLE_WALLET case Fee: { // core option - can be changed on-the-fly // Todo: Add is valid check and warn via message, if not - qint64 nTransactionFee = value.toLongLong(); + CAmount nTransactionFee(value.toLongLong()); payTxFee = CFeeRate(nTransactionFee, 1000); - settings.setValue("nTransactionFee", nTransactionFee); + settings.setValue("nTransactionFee", qint64(nTransactionFee)); emit transactionFeeChanged(nTransactionFee); break; } |