mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
LibGUI: Set correct default value during menu destruction
This commit is contained in:
parent
8248c74d88
commit
082b7d6b0c
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void Menu::unrealize_menu()
|
||||||
return;
|
return;
|
||||||
all_menus().remove(m_menu_id);
|
all_menus().remove(m_menu_id);
|
||||||
WindowServerConnection::the().send_sync<Messages::WindowServer::DestroyMenu>(m_menu_id);
|
WindowServerConnection::the().send_sync<Messages::WindowServer::DestroyMenu>(m_menu_id);
|
||||||
m_menu_id = 0;
|
m_menu_id = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::realize_menu_if_needed()
|
void Menu::realize_menu_if_needed()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue