mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
LibGUI: Fix menu leak when default action changed
This commit is contained in:
parent
50903fd88c
commit
8ae37bccf1
Notes:
sideshowbarker
2024-07-19 04:49:14 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/8ae37bccf13 Pull-request: https://github.com/SerenityOS/serenity/pull/2795
@ -104,6 +104,7 @@ void Menu::dismiss()
|
||||
|
||||
int Menu::realize_menu(RefPtr<Action> default_action)
|
||||
{
|
||||
unrealize_menu();
|
||||
m_menu_id = WindowServerConnection::the().send_sync<Messages::WindowServer::CreateMenu>(m_name)->menu_id();
|
||||
|
||||
#ifdef MENU_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user