From b2e531e70a88f5c9e1c055ae7341520a3128e15d Mon Sep 17 00:00:00 2001 From: pablomartin4btc Date: Wed, 6 Dec 2023 18:48:03 -0300 Subject: [PATCH] qt: update widgets availability on wallet selection The Transaction View should be only enabled when a wallet is selected. Therefore it has been added a condition for a selected wallet on enableHistoryAction() since its availability also depends on the mask value checkbox. --- src/qt/bitcoingui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index fd71938b606..3e177af53cd 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -673,8 +673,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)