diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-02-21 14:36:36 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-21 15:14:17 +0100 |
commit | 7d75a5a93c161aa4de22ac862702ba0241e8faa2 (patch) | |
tree | 1b43a2916931677f241872b349d083d87d45cb91 /src/qt/bitcoingui.cpp | |
parent | e22c0671c74bc4db70b3ba04d093cd110f9f22a7 (diff) | |
download | bitcoin-7d75a5a93c161aa4de22ac862702ba0241e8faa2.tar.xz |
Fix segfault crash when shutdown the GUI in disablewallet mode
Github-Pull: #9817
Rebased-From: 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-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); } |