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. 5
      src/qt/bitcoingui.cpp

5
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
walletFrame->setClientModel(nullptr); if (walletFrame)
{
walletFrame->setClientModel(nullptr);
}
#endif // ENABLE_WALLET #endif // ENABLE_WALLET
unitDisplayControl->setOptionsModel(nullptr); unitDisplayControl->setOptionsModel(nullptr);
} }

Loading…
Cancel
Save