1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 12:05:07 +00:00

LibGUI: Added window creation callback to GApplication/GWindow

Added a window creation callback to GApplication that gets called
by GWindow which will reset any pending exit request in the
CEventLoop.

This is to prevent a bug which prevents your application from
starting up if you had a message box or other dialog before
showing your main application form. The bug was triggered by
there being no more visible windows which was triggering a
premature quit().
This commit is contained in:
Brandon Scott 2019-10-25 00:23:35 -05:00 committed by Andreas Kling
parent 5311f8fae1
commit 51e655f903
3 changed files with 8 additions and 0 deletions

View file

@ -84,6 +84,7 @@ void GWindow::show()
apply_icon();
reified_windows.set(m_window_id, this);
GApplication::the().did_create_window({});
update();
}