diff options
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 9bbfe5a6de..ad80922c8b 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -677,8 +677,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel, interfaces::BlockAndH #ifdef ENABLE_WALLET void BitcoinGUI::enableHistoryAction(bool privacy) { - historyAction->setEnabled(!privacy); - if (historyAction->isChecked()) gotoOverviewPage(); + if (walletFrame->currentWalletModel()) { + historyAction->setEnabled(!privacy); + if (historyAction->isChecked()) gotoOverviewPage(); + } } void BitcoinGUI::setWalletController(WalletController* wallet_controller, bool show_loading_minimized) |