aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorロハン ダル <rohun-dhar@MN14042102.local>2017-02-21 11:31:13 -0800
committerロハン ダル <rohun-dhar@MN14042102.local>2017-02-21 11:31:13 -0800
commitd60d54ddb394bce457c87fee5474421db65811ab (patch)
tree955d66deef5fc5483032a5edbb6d5eb2ebec35fe /src/qt/bitcoingui.cpp
parent64aa36e20368fa16d4ff757d56dc2690ed0f48ba (diff)
parent61a640ea9741e5e76b945699a8332b0a9923339b (diff)
merge with bitcoin core
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-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);
}