From 52a250cb614805134ef7e253a1866d69bcb99b9f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Apr 2020 16:01:00 +0200 Subject: LibGUI: Make MenuBar a Core::Object This makes it show up in Inspector with all the menus inside it. :^) --- Applications/TextEditor/TextEditorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications/TextEditor') diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index f7b90a7b48..bf1ce9d864 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -341,7 +341,7 @@ TextEditorWidget::TextEditorWidget() m_line_wrapping_setting_action->set_checkable(true); m_line_wrapping_setting_action->set_checked(m_editor->is_line_wrapping_enabled()); - auto menubar = make(); + auto menubar = GUI::MenuBar::construct(); auto& app_menu = menubar->add_menu("Text Editor"); app_menu.add_action(*m_new_action); app_menu.add_action(*m_open_action); -- cgit v1.2.3