Skip to content

Commit

Permalink
Merge bitcoin#9817: Fix segfault crash when shutdown the GUI in disab…
Browse files Browse the repository at this point in the history
…lewallet mode

312c4f1 Fix segfault crash when shutdown the GUI in disablewallet mode (Jonas Schnelli)
  • Loading branch information
laanwj authored and CryptoCentric committed Feb 27, 2019
1 parent 0865c59 commit 9a0d426
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,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);

Expand Down

0 comments on commit 9a0d426

Please sign in to comment.