diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp index 04bc9386369..b0dbf8175db 100644 --- a/Applications/TextEditor/main.cpp +++ b/Applications/TextEditor/main.cpp @@ -83,9 +83,9 @@ int main(int argc, char** argv) menubar->add_menu(move(app_menu)); auto file_menu = make("File"); - file_menu->add_action(new_action.copy_ref()); - file_menu->add_action(open_action.copy_ref()); - file_menu->add_action(save_action.copy_ref()); + file_menu->add_action(new_action); + file_menu->add_action(open_action); + file_menu->add_action(save_action); menubar->add_menu(move(file_menu)); auto edit_menu = make("Edit");