Fix segfault crash when shutdown the GUI in disablewallet mode
Github-Pull: #9817
Rebased-From: 312c4f1057
This commit is contained in:
parent
59c37ae55a
commit
c6811c1bd3
|
@ -499,7 +499,10 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
||||||
// Propagate cleared model to child objects
|
// Propagate cleared model to child objects
|
||||||
rpcConsole->setClientModel(nullptr);
|
rpcConsole->setClientModel(nullptr);
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
walletFrame->setClientModel(nullptr);
|
if (walletFrame)
|
||||||
|
{
|
||||||
|
walletFrame->setClientModel(nullptr);
|
||||||
|
}
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
unitDisplayControl->setOptionsModel(nullptr);
|
unitDisplayControl->setOptionsModel(nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue