From 376b3a28c0004c49b452b5510309f6c7ff7880b5 Mon Sep 17 00:00:00 2001 From: Denio Date: Wed, 20 Nov 2019 13:47:48 +0100 Subject: [PATCH] fix txtablemodell.cpp --- src/txtablemodel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/txtablemodel.cpp b/src/txtablemodel.cpp index 23920b2..7d21e12 100644 --- a/src/txtablemodel.cpp +++ b/src/txtablemodel.cpp @@ -161,11 +161,9 @@ QVariant TxTableModel::data(const QModelIndex &index, int role) const { if (Settings::getInstance()->get_currency_name() == "USD") { return total.toDecimalUSDString(); } else if (Settings::getInstance()->get_currency_name() == "EUR") { - return total.toDecimalEURString(); + return total.toDecimalEURString(); } else if (Settings::getInstance()->get_currency_name() == "BTC") { return total.toDecimalBTCString(); - } else if (Settings::getInstance()->get_currency_name() == "EUR") { - return total.toDecimalEURString(); } else if (Settings::getInstance()->get_currency_name() == "CNY") { return total.toDecimalCNYString(); } else if (Settings::getInstance()->get_currency_name() == "RUB") { @@ -182,9 +180,10 @@ QVariant TxTableModel::data(const QModelIndex &index, int role) const { return total.toDecimalGBPString(); } else if (Settings::getInstance()->get_currency_name() == "AUD") { return total.toDecimalAUDString(); - } - } + } } + } + } if (role == Qt::DecorationRole && index.column() == 0) {