diff options
| author | Jonas Schnelli <[email protected]> | 2017-02-21 14:36:36 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2017-02-21 14:37:20 +0100 |
| commit | 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52 (patch) | |
| tree | 5b71871954c9eae2bb556c257e5763e761f41876 /src | |
| parent | Merge #9798: Fix Issue #9775 (Check returned value of fopen) (diff) | |
| download | discoin-312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52.tar.xz discoin-312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52.zip | |
Fix segfault crash when shutdown the GUI in disablewallet mode
Diffstat (limited to 'src')
| -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 1c1acb6b1..be79a6799 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); } |