summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-29 07:52:25 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-29 07:52:25 (GMT)
commitdae562ea1bcc2e65d14f6a4404b7544295f1a910 (patch)
tree9d976299e7d2cf1b322c4a72de8094b0ab9d0fd9 /src
parent74b3de38bce01b06954e7ff836693f80dc9e66ee (diff)
downloadQt-dae562ea1bcc2e65d14f6a4404b7544295f1a910.zip
Qt-dae562ea1bcc2e65d14f6a4404b7544295f1a910.tar.gz
Qt-dae562ea1bcc2e65d14f6a4404b7544295f1a910.tar.bz2
Compile.
I now need to get the index of the action before I can find any corresponding window item.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qmenu_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenu_mac.mm b/src/gui/widgets/qmenu_mac.mm
index 6056119..77e98c4 100644
--- a/src/gui/widgets/qmenu_mac.mm
+++ b/src/gui/widgets/qmenu_mac.mm
@@ -1180,7 +1180,7 @@ QMenuPrivate::QMacMenuPrivate::addAction(QMacMenuAction *action, QMacMenuAction
#endif
}
- QWidget *widget = qmenu ? qmenu->widgetItems.value(action->action) : 0;
+ QWidget *widget = qmenu ? qmenu->widgetItems.value(qmenu->actions.indexOf(action->action)) : 0;
if (widget) {
#ifndef QT_MAC_USE_COCOA
ChangeMenuAttributes(action->menu, kMenuAttrDoNotCacheImage, 0);