@@ -731,9 +731,7 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
731731 connect (wallet_view, &WalletView::encryptionStatusChanged, this , &BitcoinGUI::updateWalletStatus);
732732 connect (wallet_view, &WalletView::incomingTransaction, this , &BitcoinGUI::incomingTransaction);
733733 connect (this , &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
734- const bool privacy = isPrivacyModeActivated ();
735- wallet_view->setPrivacy (privacy);
736- enableHistoryAction (privacy);
734+ wallet_view->setPrivacy (isPrivacyModeActivated ());
737735 const QString display_name = walletModel->getDisplayName ();
738736 m_wallet_selector->addItem (display_name, QVariant::fromValue (walletModel));
739737}
@@ -793,7 +791,7 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
793791 overviewAction->setEnabled (enabled);
794792 sendCoinsAction->setEnabled (enabled);
795793 receiveCoinsAction->setEnabled (enabled);
796- historyAction->setEnabled (enabled);
794+ historyAction->setEnabled (enabled && ! isPrivacyModeActivated () );
797795 encryptWalletAction->setEnabled (enabled);
798796 backupWalletAction->setEnabled (enabled);
799797 changePassphraseAction->setEnabled (enabled);
0 commit comments