From 83b0abf928af6cd9f301e3367c439eca22aab323 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 30 Jan 2018 00:32:36 +0100 Subject: [PATCH] Use the right attribute when checking if shortcuts are shown Change-Id: I784965dda64551e6093af817881aa6472d2cc226 Reviewed-by: Jake Petroules Reviewed-by: Gabriel de Dietrich --- src/widgets/kernel/qaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp index 853e27cd6e..a48eb90048 100644 --- a/src/widgets/kernel/qaction.cpp +++ b/src/widgets/kernel/qaction.cpp @@ -1332,7 +1332,7 @@ bool QAction::isShortcutVisibleInContextMenu() const { Q_D(const QAction); if (d->shortcutVisibleInContextMenu == -1) { - if (QApplication::instance()->testAttribute(Qt::AA_DontShowIconsInMenus)) + if (QApplication::instance()->testAttribute(Qt::AA_DontShowShortcutsInContextMenus)) return false; return qApp->styleHints()->showShortcutsInContextMenus(); }