From 25907ea8c652cd37d5d4907e6822cf99bc88743a Mon Sep 17 00:00:00 2001 From: Yihe Li Date: Thu, 5 Jun 2025 23:22:49 +0800 Subject: [PATCH] Forgot to reset pointer to nullptr Signed-off-by: Yihe Li --- launcher/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 5e70286ac..a92c6b1e7 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1760,6 +1760,10 @@ void Application::on_windowClose() if (mainWindow) { m_mainWindow = nullptr; } + auto logWindow = qobject_cast(sender()); + if (logWindow) { + m_viewLogWindow = nullptr; + } // quit when there are no more windows. if (shouldExitNow()) { exit(0);