aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-02-21 14:36:36 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-21 15:15:19 +0100
commitc6811c1bd314f4297b22f12a4cefdd1bbbb0c749 (patch)
tree4f42f77a15b66180ef8bb72bee059bc8a5db521f /src
parent59c37ae55a476d3cf84c9bafbc083904472fe4db (diff)
downloadbitcoin-c6811c1bd314f4297b22f12a4cefdd1bbbb0c749.tar.xz
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 1a5d27f6eb..38cfc262b8 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -499,7 +499,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);
}