mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:28:11 +00:00
WindowServer: Stop trying to close windows that are already destroyed
This commit is contained in:
parent
a330a070d4
commit
fd7163b125
1 changed files with 3 additions and 0 deletions
|
@ -898,6 +898,9 @@ void Window::window_menu_activate_default()
|
|||
|
||||
void Window::request_close()
|
||||
{
|
||||
if (is_destroyed())
|
||||
return;
|
||||
|
||||
Event close_request(Event::WindowCloseRequest);
|
||||
event(close_request);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue