mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-31 06:22:35 +02:00
gui: Fix SplashScreen crash when run with -disablewallet
This commit is contained in:
parent
12a1c3ad1a
commit
c056064a4a
@ -14,6 +14,7 @@
|
|||||||
#include <interfaces/wallet.h>
|
#include <interfaces/wallet.h>
|
||||||
#include <qt/guiutil.h>
|
#include <qt/guiutil.h>
|
||||||
#include <qt/networkstyle.h>
|
#include <qt/networkstyle.h>
|
||||||
|
#include <qt/walletmodel.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
#include <util/translation.h>
|
#include <util/translation.h>
|
||||||
|
|
||||||
@ -196,6 +197,7 @@ void SplashScreen::subscribeToCoreSignals()
|
|||||||
void SplashScreen::handleLoadWallet()
|
void SplashScreen::handleLoadWallet()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
|
if (!WalletModel::isWalletEnabled()) return;
|
||||||
m_handler_load_wallet = m_node->walletClient().handleLoadWallet([this](std::unique_ptr<interfaces::Wallet> wallet) {
|
m_handler_load_wallet = m_node->walletClient().handleLoadWallet([this](std::unique_ptr<interfaces::Wallet> wallet) {
|
||||||
m_connected_wallet_handlers.emplace_back(wallet->handleShowProgress(std::bind(ShowProgress, this, std::placeholders::_1, std::placeholders::_2, false)));
|
m_connected_wallet_handlers.emplace_back(wallet->handleShowProgress(std::bind(ShowProgress, this, std::placeholders::_1, std::placeholders::_2, false)));
|
||||||
m_connected_wallets.emplace_back(std::move(wallet));
|
m_connected_wallets.emplace_back(std::move(wallet));
|
||||||
|
Loading…
Reference in New Issue
Block a user