Skip to content

Commit

Permalink
Fix segfault crash when shutdown the GUI in disablewallet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Feb 21, 2017
1 parent 8ad31f9 commit 312c4f1
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 @@ -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);
}
Expand Down

0 comments on commit 312c4f1

Please sign in to comment.