Browse Source

Fix a small bug where a rare exception could set default currency to USD (old default) instead of BTC (new default)

chat
Duke Leto 4 years ago
parent
commit
3c42c28db8
  1. 2
      src/mainwindow.cpp

2
src/mainwindow.cpp

@ -1556,7 +1556,7 @@ void MainWindow::slot_change_currency(const std::string& currency_name)
saved_currency_name = Settings::getInstance()->get_currency_name();
} catch (const std::exception& e) {
qDebug() << QString("Ignoring currency change Exception! : ") << e.what();
saved_currency_name = "USD";
saved_currency_name = "BTC";
}
}

Loading…
Cancel
Save