Skip to content

Commit c056064

Browse files
committed
gui: Fix SplashScreen crash when run with -disablewallet
1 parent 12a1c3a commit c056064

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/splashscreen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <interfaces/wallet.h>
1515
#include <qt/guiutil.h>
1616
#include <qt/networkstyle.h>
17+
#include <qt/walletmodel.h>
1718
#include <util/system.h>
1819
#include <util/translation.h>
1920

@@ -196,6 +197,7 @@ void SplashScreen::subscribeToCoreSignals()
196197
void SplashScreen::handleLoadWallet()
197198
{
198199
#ifdef ENABLE_WALLET
200+
if (!WalletModel::isWalletEnabled()) return;
199201
m_handler_load_wallet = m_node->walletClient().handleLoadWallet([this](std::unique_ptr<interfaces::Wallet> wallet) {
200202
m_connected_wallet_handlers.emplace_back(wallet->handleShowProgress(std::bind(ShowProgress, this, std::placeholders::_1, std::placeholders::_2, false)));
201203
m_connected_wallets.emplace_back(std::move(wallet));

0 commit comments

Comments
 (0)