Browse Source

Sometimes the error object is null and these cause coredumps, ugh

pull/184/head
Duke Leto 4 years ago
parent
commit
4344f64a11
  1. 6
      src/mainwindow.cpp
  2. 2
      src/rpc.cpp

6
src/mainwindow.cpp

@ -284,7 +284,7 @@ void MainWindow::setupSettingsModal() {
try {
currency_name = Settings::getInstance()->get_currency_name();
} catch (const std::exception& e) {
qDebug() << QString("Currency name exception! : ") << e.what();
qDebug() << QString("Currency name exception! : ");
currency_name = "USD";
}
@ -1553,7 +1553,7 @@ void MainWindow::slot_change_currency(const std::string& currency_name)
try {
saved_currency_name = Settings::getInstance()->get_currency_name();
} catch (const std::exception& e) {
qDebug() << QString("Ignoring currency change Exception! : ") << e.what();
qDebug() << QString("Ignoring currency change Exception! : ");
saved_currency_name = "USD";
}
}
@ -1567,7 +1567,7 @@ void MainWindow::slot_change_theme(const QString& theme_name)
try {
saved_theme_name = Settings::getInstance()->get_theme_name();
} catch (const std::exception& e) {
qDebug() << QString("Ignoring theme change Exception! : ") << e.what();
qDebug() << QString("Ignoring theme change Exception! : ");
saved_theme_name = "default";
}

2
src/rpc.cpp

@ -1193,7 +1193,7 @@ void RPC::refreshPrice() {
}
} catch (const std::exception& e) {
// If anything at all goes wrong, just set the price to 0 and move on.
qDebug() << QString("Price feed update failure : ") << e.what();
qDebug() << QString("Price feed update failure : ");
}
// If nothing, then set the price to 0;

Loading…
Cancel
Save