mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
WalletManager: check connection before isMining()
This commit is contained in:
parent
43d5bd3e2d
commit
9dbbd4c9bc
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ double WalletManager::miningHashRate() const
|
|||
|
||||
bool WalletManager::isMining() const
|
||||
{
|
||||
if(!m_currentWallet->connected())
|
||||
return false;
|
||||
return m_pimpl->isMining();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue