mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
AppContext: updateBalance: don't throw runtime error
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user