mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
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.
This commit is contained in:
parent
6d5790956f
commit
b2e531e70a
@ -673,8 +673,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel, interfaces::BlockAndH
|
|||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
void BitcoinGUI::enableHistoryAction(bool privacy)
|
void BitcoinGUI::enableHistoryAction(bool privacy)
|
||||||
{
|
{
|
||||||
historyAction->setEnabled(!privacy);
|
if (walletFrame->currentWalletModel()) {
|
||||||
if (historyAction->isChecked()) gotoOverviewPage();
|
historyAction->setEnabled(!privacy);
|
||||||
|
if (historyAction->isChecked()) gotoOverviewPage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinGUI::setWalletController(WalletController* wallet_controller, bool show_loading_minimized)
|
void BitcoinGUI::setWalletController(WalletController* wallet_controller, bool show_loading_minimized)
|
||||||
|
Loading…
Reference in New Issue
Block a user