Skip to content

Commit 312c4f1

Browse files
committed
Fix segfault crash when shutdown the GUI in disablewallet mode
1 parent 8ad31f9 commit 312c4f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/qt/bitcoingui.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,10 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
518518
// Propagate cleared model to child objects
519519
rpcConsole->setClientModel(nullptr);
520520
#ifdef ENABLE_WALLET
521-
walletFrame->setClientModel(nullptr);
521+
if (walletFrame)
522+
{
523+
walletFrame->setClientModel(nullptr);
524+
}
522525
#endif // ENABLE_WALLET
523526
unitDisplayControl->setOptionsModel(nullptr);
524527
}

0 commit comments

Comments
 (0)