From 7a1ac42b1e0759364fcf34cfa9cb76f5b3d4658a Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 2 Nov 2020 11:03:08 +0100 Subject: [PATCH] AppContext: updateBalance: don't throw runtime error --- src/appcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appcontext.cpp b/src/appcontext.cpp index 17d9ada..25a66d3 100644 --- a/src/appcontext.cpp +++ b/src/appcontext.cpp @@ -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');