mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05: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;
|
||||
all_menus().remove(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()
|
||||
|
|
Loading…
Add table
Reference in a new issue