AppContext: updateBalance: don't throw runtime error

master
tobtoht 4 years ago
parent 87fd142ffd
commit 7a1ac42b1e

@ -791,7 +791,7 @@ void AppContext::storeWallet() {
void AppContext::updateBalance() {
if(!this->currentWallet)
throw std::runtime_error("this should not happen, ever");
return;
AppContext::balance = this->currentWallet->balance() / globals::cdiv;
auto balance_str = QString::number(balance, 'f');

Loading…
Cancel
Save