From 9dbbd4c9bc9e0e7a9b3a5f3d5f2bb67897a841b7 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 30 Jan 2017 18:16:07 +0100 Subject: [PATCH] WalletManager: check connection before isMining() --- src/libwalletqt/WalletManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libwalletqt/WalletManager.cpp b/src/libwalletqt/WalletManager.cpp index 1db216cf..ec03610d 100644 --- a/src/libwalletqt/WalletManager.cpp +++ b/src/libwalletqt/WalletManager.cpp @@ -256,6 +256,8 @@ double WalletManager::miningHashRate() const bool WalletManager::isMining() const { + if(!m_currentWallet->connected()) + return false; return m_pimpl->isMining(); }