From c72207c2e28051b93274996bba3989938e4bcea4 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 6 Aug 2017 16:48:18 +0200 Subject: [PATCH] transactionInfo: use empty str when fee=0 --- components/HistoryTable.qml | 2 +- src/libwalletqt/TransactionInfo.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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()); }