Skip to content

Commit b2e531e

Browse files
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.
1 parent 6d57909 commit b2e531e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/qt/bitcoingui.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel, interfaces::BlockAndH
673673
#ifdef ENABLE_WALLET
674674
void BitcoinGUI::enableHistoryAction(bool privacy)
675675
{
676-
historyAction->setEnabled(!privacy);
677-
if (historyAction->isChecked()) gotoOverviewPage();
676+
if (walletFrame->currentWalletModel()) {
677+
historyAction->setEnabled(!privacy);
678+
if (historyAction->isChecked()) gotoOverviewPage();
679+
}
678680
}
679681

680682
void BitcoinGUI::setWalletController(WalletController* wallet_controller, bool show_loading_minimized)

0 commit comments

Comments
 (0)