summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2010-02-04 15:06:00 (GMT)
committerPierre Rossi <pierre.rossi@nokia.com>2010-02-05 09:46:23 (GMT)
commitc6393ddce6fc9df8f52039089cc67699eb95aada (patch)
treed649610ba6c383fae605a3909302edd8ff5d69a2 /src
parent349e9189e205c3dfdef271798310d1f38163b891 (diff)
downloadQt-c6393ddce6fc9df8f52039089cc67699eb95aada.zip
Qt-c6393ddce6fc9df8f52039089cc67699eb95aada.tar.gz
Qt-c6393ddce6fc9df8f52039089cc67699eb95aada.tar.bz2
Get rid of setFirstActionActive on mouse release in QMenu
The point in keeping this behaviour seems limited, and it is causing a bug on touch-screens where there are no mouse moves. Task-number: QTBUG-7907 Reviewed-by: ogoffart Reviewed-by: Thierry
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qmenu.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp
index 8ce7cc0..08960da 100644
--- a/src/gui/widgets/qmenu.cpp
+++ b/src/gui/widgets/qmenu.cpp
@@ -2302,9 +2302,7 @@ void QMenu::mouseReleaseEvent(QMouseEvent *e)
QAction *action = d->actionAt(e->pos());
if (action && action == d->currentAction) {
- if (action->menu())
- action->menu()->d_func()->setFirstActionActive();
- else {
+ if (!action->menu()){
#if defined(Q_WS_WIN)
//On Windows only context menus can be activated with the right button
if (e->button() == Qt::LeftButton || d->topCausedWidget() == 0)