From e7d11b3644cabbfae4f62996749950e17756c115 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 12 Nov 2021 18:29:02 -0500 Subject: [PATCH] In case of exception, use BTC instead of USD as default currency --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index dccee2c..2204923 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -279,7 +279,7 @@ void MainWindow::setupSettingsModal() { currency_name = Settings::getInstance()->get_currency_name(); } catch (const std::exception& e) { qDebug() << QString("Currency name exception! : "); - currency_name = "USD"; + currency_name = "BTC"; } this->slot_change_currency(currency_name); @@ -1758,7 +1758,7 @@ void MainWindow::slot_change_currency(const QString& currency_name) saved_currency_name = Settings::getInstance()->get_currency_name(); } catch (const std::exception& e) { qDebug() << QString("Ignoring currency change Exception! : "); - saved_currency_name = "USD"; + saved_currency_name = "BTC"; } }