Forgot to reset pointer to nullptr
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@@ -1760,6 +1760,10 @@ void Application::on_windowClose()
|
||||
if (mainWindow) {
|
||||
m_mainWindow = nullptr;
|
||||
}
|
||||
auto logWindow = qobject_cast<ViewLogWindow*>(sender());
|
||||
if (logWindow) {
|
||||
m_viewLogWindow = nullptr;
|
||||
}
|
||||
// quit when there are no more windows.
|
||||
if (shouldExitNow()) {
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user