aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-02-21 14:36:36 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2017-02-21 14:37:20 +0100
commit312c4f10574ccf6dfe0d4ecb3ce928733d3a1e52 (patch)
tree5b71871954c9eae2bb556c257e5763e761f41876 /src
parent8ad31f9aa3111e079dd5024e8f6b069abb564b81 (diff)
Fix segfault crash when shutdown the GUI in disablewallet mode
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 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);
}