mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Merge #9817: Fix segfault crash when shutdown the GUI in disablewallet mode
312c4f1
Fix segfault crash when shutdown the GUI in disablewallet mode (Jonas Schnelli)
This commit is contained in:
commit
8528d6ac6d
@ -518,7 +518,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
|
||||||
|
if (walletFrame)
|
||||||
|
{
|
||||||
walletFrame->setClientModel(nullptr);
|
walletFrame->setClientModel(nullptr);
|
||||||
|
}
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
unitDisplayControl->setOptionsModel(nullptr);
|
unitDisplayControl->setOptionsModel(nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user