@@ -204,11 +204,6 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
204204 modalOverlay = new ModalOverlay (enableWallet, this ->centralWidget ());
205205 connect (labelBlocksIcon, &GUIUtil::ClickableLabel::clicked, this , &BitcoinGUI::showModalOverlay);
206206 connect (progressBar, &GUIUtil::ClickableProgressBar::clicked, this , &BitcoinGUI::showModalOverlay);
207- #ifdef ENABLE_WALLET
208- if (enableWallet) {
209- connect (walletFrame, &WalletFrame::requestedSyncWarningInfo, this , &BitcoinGUI::showModalOverlay);
210- }
211- #endif
212207
213208#ifdef Q_OS_MAC
214209 m_app_nap_inhibitor = new CAppNapInhibitor;
@@ -673,7 +668,7 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
673668 m_wallet_selector_action->setVisible (true );
674669 }
675670
676- connect (walletView, &WalletView::outOfSyncWarningClicked, walletFrame , &WalletFrame::outOfSyncWarningClicked );
671+ connect (walletView, &WalletView::outOfSyncWarningClicked, this , &BitcoinGUI::showModalOverlay );
677672 connect (walletView, &WalletView::transactionClicked, this , &BitcoinGUI::gotoHistoryPage);
678673 connect (walletView, &WalletView::coinsSent, this , &BitcoinGUI::gotoHistoryPage);
679674 connect (walletView, &WalletView::message, [this ](const QString& title, const QString& message, unsigned int style) {
0 commit comments