diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-08-06 16:48:18 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-11-01 17:02:44 +0100 |
| commit | c72207c2e28051b93274996bba3989938e4bcea4 (patch) | |
| tree | 71b8bdee7ec99f627a5316f42431b53f14193601 | |
| parent | 8553771f897751be47db092bbb7739b4bc2f625a (diff) | |
| download | monzero-gui-c72207c2e28051b93274996bba3989938e4bcea4.tar.gz monzero-gui-c72207c2e28051b93274996bba3989938e4bcea4.tar.xz monzero-gui-c72207c2e28051b93274996bba3989938e4bcea4.zip | |
transactionInfo: use empty str when fee=0
| -rw-r--r-- | components/HistoryTable.qml | 2 | ||||
| -rw-r--r-- | src/libwalletqt/TransactionInfo.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml index 082822d3..37665f15 100644 --- a/components/HistoryTable.qml +++ b/components/HistoryTable.qml @@ -383,7 +383,7 @@ ListView { Column { anchors.top: parent.top width: 148 - visible: isOut + visible: isOut && fee != "" Text { anchors.left: parent.left font.family: "Arial" diff --git a/src/libwalletqt/TransactionInfo.cpp b/src/libwalletqt/TransactionInfo.cpp index 5ad739bf..a787b151 100644 --- a/src/libwalletqt/TransactionInfo.cpp +++ b/src/libwalletqt/TransactionInfo.cpp @@ -38,6 +38,8 @@ QString TransactionInfo::displayAmount() const QString TransactionInfo::fee() const { + if(m_pimpl->fee() == 0) + return ""; return WalletManager::instance()->displayAmount(m_pimpl->fee()); } |
