From 762c9653772a97f351f92d53a71b0d407e676a15 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Tue, 27 Jan 2026 22:35:02 +0100 Subject: [PATCH] fix: Add preconditions for windows chat --- qodeassist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qodeassist.cpp b/qodeassist.cpp index 7104982..a205aab 100644 --- a/qodeassist.cpp +++ b/qodeassist.cpp @@ -236,7 +236,7 @@ public: closeChatViewAction.setText(Tr::tr("Close QodeAssist Chat")); closeChatViewAction.setIcon(QCODEASSIST_CHAT_ICON.icon()); closeChatViewAction.addOnTriggered(this, [this] { - if (m_chatView->isVisible()) { + if (m_chatView && m_chatView->isActive() && m_chatView->isVisible()) { m_chatView->close(); } });