Browse Source

Fix segfault crash when shutdown the GUI in disablewallet mode

0.15
Jonas Schnelli 8 years ago
parent
commit
312c4f1057
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 3
      src/qt/bitcoingui.cpp

3
src/qt/bitcoingui.cpp

@ -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…
Cancel
Save