mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
Merge pull request 'AppContext: updateBalance: don't throw runtime error' (#134) from tobtoht/feather:no_runtime_error into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/134
This commit is contained in:
commit
c1cba44cba
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue