@@ -756,9 +756,7 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
756756 connect (wallet_view, &WalletView::encryptionStatusChanged, this , &BitcoinGUI::updateWalletStatus);
757757 connect (wallet_view, &WalletView::incomingTransaction, this , &BitcoinGUI::incomingTransaction);
758758 connect (this , &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
759- const bool privacy = isPrivacyModeActivated ();
760- wallet_view->setPrivacy (privacy);
761- enableHistoryAction (privacy);
759+ wallet_view->setPrivacy (isPrivacyModeActivated ());
762760 const QString display_name = walletModel->getDisplayName ();
763761 m_wallet_selector->addItem (display_name, QVariant::fromValue (walletModel));
764762}
@@ -817,7 +815,7 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
817815 overviewAction->setEnabled (enabled);
818816 sendCoinsAction->setEnabled (enabled);
819817 receiveCoinsAction->setEnabled (enabled);
820- historyAction->setEnabled (enabled);
818+ historyAction->setEnabled (enabled && ! isPrivacyModeActivated () );
821819 encryptWalletAction->setEnabled (enabled);
822820 backupWalletAction->setEnabled (enabled);
823821 changePassphraseAction->setEnabled (enabled);
0 commit comments