OpenToonz - An open-source full-featured 2D animation creation software
C
Merge branch 'fix_osx_menu' of https://github.com/artisteacher/opentoonz into artisteacher-fix_osx_menu
shun-iwasawa19867b9a8b5b
diff --cc toonz/sources/toonz/mainwindow.cppindex ac6f2cb75,063e2c3ce..e20bfdc8d--- a/toonz/sources/toonz/mainwindow.cpp+++ b/toonz/sources/toonz/mainwindow.cpp@@@ -1418,15 -1418,18 +1418,19 @@@ QAction *MainWindow::createAction(consQAction *action = new DVAction(name, this);addAction(action);#ifdef MACOSX- if (strcmp(id, MI_Preferences) == 0) {-// To prevent the wrong menu items (due to MacOS menu naming conventions), from-// taking Preferences, Quit, or About roles (sometimes happens unexpectedly in-// translations) - all menu items should have "NoRole"++ // To prevent the wrong menu items (due to MacOS menu naming conventions),++ // from++ // taking Preferences, Quit, or About roles (sometimes happens unexpectedly in++ // translations) - all menu items should have "NoRole"+ // except for Preferences, Quit, and About+ if (strcmp(id, MI_Preferences) == 0)action->setMenuRole(QAction::PreferencesRole);- }- if (strcmp(id, MI_ShortcutPopup) == 0) {- action->setMenuRole(QAction::NoRole);- }- if (strcmp(id, MI_ExitGroup) == 0) {+ else if (strcmp(id, MI_Quit) == 0)+ action->setMenuRole(QAction::QuitRole);+ else if (strcmp(id, MI_About) == 0)+ action->setMenuRole(QAction::AboutRole);+ elseaction->setMenuRole(QAction::NoRole);- }#endifCommandManager::instance()->define(id, type, defaultShortcut.toStdString(),action);