summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Application.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-21 16:01:00 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-21 16:19:18 +0200
commit52a250cb614805134ef7e253a1866d69bcb99b9f (patch)
treeb04b88e62af46c7f67182db79382c4637a7f99be /Libraries/LibGUI/Application.cpp
parenta19690170f879ee16df5dd910064b00b92f793ca (diff)
downloadserenity-52a250cb614805134ef7e253a1866d69bcb99b9f.zip
LibGUI: Make MenuBar a Core::Object
This makes it show up in Inspector with all the menus inside it. :^)
Diffstat (limited to 'Libraries/LibGUI/Application.cpp')
-rw-r--r--Libraries/LibGUI/Application.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp
index b560677082..322869b91f 100644
--- a/Libraries/LibGUI/Application.cpp
+++ b/Libraries/LibGUI/Application.cpp
@@ -79,7 +79,7 @@ void Application::quit(int exit_code)
m_event_loop->quit(exit_code);
}
-void Application::set_menubar(OwnPtr<MenuBar>&& menubar)
+void Application::set_menubar(RefPtr<MenuBar> menubar)
{
if (m_menubar)
m_menubar->notify_removed_from_application({});