From 73b0fd04cb924e5d26a6e2aea443db6020c79b61 Mon Sep 17 00:00:00 2001 From: Mauro Mandracchia Date: Wed, 6 May 2020 22:36:03 +0200 Subject: [PATCH] Solve #1445 duplicate Quit on Mac OSX --- src/ui/desktop/menubar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index 35de5e4f31..00c51fd490 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -504,6 +504,12 @@ build_menu(Gtk::MenuShell* menu, Inkscape::XML::Node* xml, Inkscape::UI::View::V Inkscape::Verb *verb = Inkscape::Verb::getbyid(verb_name.c_str()); if (verb != nullptr && verb->get_code() != SP_VERB_NONE) { +#ifdef GDK_WINDOWING_QUARTZ + if (verb->get_code() == SP_VERB_FILE_QUIT) { + continue; + } +#endif + SPAction* action = verb->get_action(Inkscape::ActionContext(view)); if (menu_ptr->attribute("check") != nullptr) { Gtk::MenuItem *menuitem = build_menu_check_item_from_verb(action); -- GitLab