mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	AppContext: updateBalance: don't throw runtime error
This commit is contained in:
		
							parent
							
								
									87fd142ffd
								
							
						
					
					
						commit
						7a1ac42b1e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -791,7 +791,7 @@ void AppContext::storeWallet() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void AppContext::updateBalance() {
 | 
					void AppContext::updateBalance() {
 | 
				
			||||||
    if(!this->currentWallet)
 | 
					    if(!this->currentWallet)
 | 
				
			||||||
        throw std::runtime_error("this should not happen, ever");
 | 
					        return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    AppContext::balance = this->currentWallet->balance() / globals::cdiv;
 | 
					    AppContext::balance = this->currentWallet->balance() / globals::cdiv;
 | 
				
			||||||
    auto balance_str = QString::number(balance, 'f');
 | 
					    auto balance_str = QString::number(balance, 'f');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue