From 4c9ece5025449299770a75342c1c9d4c51bcdfa9 Mon Sep 17 00:00:00 2001
From: blasty <peter@haxx.in>
Date: Wed, 16 Dec 2020 10:53:41 +0100
Subject: [PATCH] Apply currency formatting to fiat column in transaction
 history

---
 src/model/TransactionHistoryModel.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/model/TransactionHistoryModel.cpp b/src/model/TransactionHistoryModel.cpp
index 254d30f..76b60ec 100644
--- a/src/model/TransactionHistoryModel.cpp
+++ b/src/model/TransactionHistoryModel.cpp
@@ -169,7 +169,7 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
                 usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
             double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
 
-            return QString("%1%2").arg(this->preferredFiatSign).arg(QString::number(fiat_rounded));
+            return QString("%1").arg(Utils::amountToCurrencyString(fiat_rounded, this->preferredFiatSymbol));
         }
         default:
         {
@@ -239,4 +239,4 @@ Qt::ItemFlags TransactionHistoryModel::flags(const QModelIndex &index) const {
         return QAbstractTableModel::flags(index) | Qt::ItemIsEditable;
 
     return QAbstractTableModel::flags(index);
-}
\ No newline at end of file
+}