Skip to content

Commit

Permalink
qt: update widgets availability on wallet selection
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pablomartin4btc committed Dec 7, 2023
1 parent 6d57909 commit b2e531e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2e531e

Please sign in to comment.