Fix segfault crash when shutdown the GUI in disablewallet mode

Github-Pull: #9817
Rebased-From: 312c4f1057
pull/331/head
Jonas Schnelli 8 years ago committed by Adrian Gallagher
parent 3a39709414
commit 19217d9d3f

@ -499,7 +499,10 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
// Propagate cleared model to child objects
rpcConsole->setClientModel(nullptr);
#ifdef ENABLE_WALLET
walletFrame->setClientModel(nullptr);
if (walletFrame)
{
walletFrame->setClientModel(nullptr);
}
#endif // ENABLE_WALLET
unitDisplayControl->setOptionsModel(nullptr);
}

Loading…
Cancel
Save