Browse Source

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)
0.15
Wladimir J. van der Laan 7 years ago
parent
commit
8528d6ac6d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 5
      src/qt/bitcoingui.cpp

5
src/qt/bitcoingui.cpp

@ -518,7 +518,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel) @@ -518,7 +518,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