aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2017-02-21 14:36:36 +0100
committerWladimir J. van der Laan <[email protected]>2017-02-21 15:14:17 +0100
commit7d75a5a93c161aa4de22ac862702ba0241e8faa2 (patch)
tree1b43a2916931677f241872b349d083d87d45cb91 /src
parentFix for issue #9775. Added check for open() returning a NULL pointer. (diff)
downloaddiscoin-7d75a5a93c161aa4de22ac862702ba0241e8faa2.tar.xz
discoin-7d75a5a93c161aa4de22ac862702ba0241e8faa2.zip
Fix segfault crash when shutdown the GUI in disablewallet mode
Github-Pull: #9817 Rebased-From: 312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoingui.cpp5
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);
}