Forgot to reset pointer to nullptr

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li 2025-06-05 23:22:49 +08:00
parent dea8de01e3
commit 25907ea8c6
No known key found for this signature in database

View file

@ -1760,6 +1760,10 @@ void Application::on_windowClose()
if (mainWindow) { if (mainWindow) {
m_mainWindow = nullptr; m_mainWindow = nullptr;
} }
auto logWindow = qobject_cast<ViewLogWindow*>(sender());
if (logWindow) {
m_viewLogWindow = nullptr;
}
// quit when there are no more windows. // quit when there are no more windows.
if (shouldExitNow()) { if (shouldExitNow()) {
exit(0); exit(0);