Core/AppWindowingComponent: Don't quit app if no window has been created yet
This commit is contained in:
parent
d27ca55943
commit
d5f281a768
|
|
@ -16,12 +16,13 @@ namespace Nz
|
|||
{
|
||||
Window& window = **it;
|
||||
if (!window.IsOpen(true))
|
||||
{
|
||||
it = m_windows.erase(it);
|
||||
if (m_quitOnLastWindowClosed && m_windows.empty())
|
||||
GetApp().Quit();
|
||||
}
|
||||
else
|
||||
++it;
|
||||
}
|
||||
|
||||
if (m_quitOnLastWindowClosed && m_windows.empty())
|
||||
GetApp().Quit();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue