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
Github-Pull: #9817
Rebased-From: 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52
  • Loading branch information
jonasschnelli authored and laanwj committed Feb 21, 2017
1 parent 59c37ae commit c6811c1
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 @@ -499,7 +499,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 c6811c1

Please sign in to comment.