LibGUI: Set correct default value during menu destruction

This commit is contained in:
Ben Wiederhake 2020-07-27 00:51:41 +02:00 committed by Andreas Kling
parent 8248c74d88
commit 082b7d6b0c

View file

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