From a6b28c1c73e33d779de8c905be935c014704b379 Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Fri, 26 Jun 2009 11:51:23 +0200 Subject: QMenu: fixed regression in autotest --- src/gui/widgets/qmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v0.12