mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-27 21:15:54 +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
|
bool WalletManager::isMining() const
|
||||||
{
|
{
|
||||||
|
if(!m_currentWallet->connected())
|
||||||
|
return false;
|
||||||
return m_pimpl->isMining();
|
return m_pimpl->isMining();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue