mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-09-12 23:12:09 +00:00
Fix segfault crash when shutdown the GUI in disablewallet mode
Github-Pull: #9817 Rebased-From: 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52
This commit is contained in:
parent
3a39709414
commit
19217d9d3f
@ -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
|
||||||
|
if (walletFrame)
|
||||||
|
{
|
||||||
walletFrame->setClientModel(nullptr);
|
walletFrame->setClientModel(nullptr);
|
||||||
|
}
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
unitDisplayControl->setOptionsModel(nullptr);
|
unitDisplayControl->setOptionsModel(nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user