Core/AppWindowingComponent: Don't quit app if no window has been created yet

This commit is contained in:
SirLynix 2023-01-28 18:16:50 +01:00
parent d27ca55943
commit d5f281a768
1 changed files with 4 additions and 3 deletions

View File

@ -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();
}
}