Bug #1672 » 1672.patch
| client/gui-qt/menu.cpp | ||
|---|---|---|
|   }); | ||
|   act = main_menu->addAction(Q_(HELP_RULESET_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_RULESET_ITEM); | ||
|   }); | ||
|   act = main_menu->addAction(Q_(HELP_TILESET_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_TILESET_ITEM); | ||
|   }); | ||
|   act = main_menu->addAction(Q_(HELP_MUSICSET_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_MUSICSET_ITEM); | ||
|   }); | ||
|   act = main_menu->addAction(Q_(HELP_NATIONS_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_NATIONS_ITEM); | ||
|   }); | ||
| ... | ... | |
|   }); | ||
|   act = main_menu->addAction(Q_(HELP_ABOUT_ITEM)); | ||
| #ifdef __APPLE__ | ||
|   // only needed on Mac, prevents qt from moving the menu item | ||
|   act->setMenuRole(QAction::NoRole); | ||
| #endif // __APPLE__ | ||
|   QObject::connect(act, &QAction::triggered, [this]() { | ||
|     slot_help(HELP_ABOUT_ITEM); | ||
|   }); | ||