summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-26 09:51:23 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-26 09:52:14 (GMT)
commita6b28c1c73e33d779de8c905be935c014704b379 (patch)
tree2972e17ec32aa5d0c75ef505c621347712744ee5
parent206fc25d734f01d2812653d78eaa625cd20b34e3 (diff)
downloadQt-a6b28c1c73e33d779de8c905be935c014704b379.zip
Qt-a6b28c1c73e33d779de8c905be935c014704b379.tar.gz
Qt-a6b28c1c73e33d779de8c905be935c014704b379.tar.bz2
QMenu: fixed regression in autotest
-rw-r--r--src/gui/widgets/qmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp
index b5348f2..2b098c0 100644
--- a/src/gui/widgets/qmenu.cpp
+++ b/src/gui/widgets/qmenu.cpp
@@ -2262,7 +2262,7 @@ void QMenu::mouseReleaseEvent(QMouseEvent *e)
break;
}
}
- if (e->button() || isContextMenu)
+ if (e->button() == Qt::LeftButton || isContextMenu)
#endif
d->activateAction(action, QAction::Trigger);
}