Core/AppWindowingComponent: Don't quit app if no window has been created yet
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user