diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-02-21 14:36:36 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-02-21 14:37:20 +0100 |
commit | 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52 (patch) | |
tree | 5b71871954c9eae2bb556c257e5763e761f41876 | |
parent | 8ad31f9aa3111e079dd5024e8f6b069abb564b81 (diff) | |
download | bitcoin-312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52.tar.xz |
Fix segfault crash when shutdown the GUI in disablewallet mode
-rw-r--r-- | src/qt/bitcoingui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 1c1acb6b10..be79a67990 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -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); } |