diff options
Diffstat (limited to 'src/qmmpui/uihelper.cpp')
| -rw-r--r-- | src/qmmpui/uihelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmmpui/uihelper.cpp b/src/qmmpui/uihelper.cpp index 5ae9e9184..0aadd0b24 100644 --- a/src/qmmpui/uihelper.cpp +++ b/src/qmmpui/uihelper.cpp @@ -71,7 +71,12 @@ void UiHelper::addAction(QAction *action, MenuType type) connect(action, SIGNAL(destroyed (QObject *)), SLOT(removeAction(QObject*))); if(!m_menus[type].actions.contains(action)) + { m_menus[type].actions.append(action); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) + action->setShortcutVisibleInContextMenu(true); +#endif + } if(m_menus[type].menu && !m_menus[type].menu->actions().contains(action)) { if(m_menus[type].before) |
