Forgot to reset pointer to nullptr
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
dea8de01e3
commit
25907ea8c6
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue