summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmenu.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-29 14:10:51 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-29 14:11:15 (GMT)
commit2f85cc0cb758b0efe4d7b5af1b79eda13be970f3 (patch)
treec54cab37a367b18cde6a3f909dbec336465ba71f /src/gui/widgets/qmenu.cpp
parentd4a80a0161be902aaf0981aa7399b29402a67e5e (diff)
downloadQt-2f85cc0cb758b0efe4d7b5af1b79eda13be970f3.zip
Qt-2f85cc0cb758b0efe4d7b5af1b79eda13be970f3.tar.gz
Qt-2f85cc0cb758b0efe4d7b5af1b79eda13be970f3.tar.bz2
Fix some coverity warnings
Diffstat (limited to 'src/gui/widgets/qmenu.cpp')
-rw-r--r--src/gui/widgets/qmenu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp
index 0aa584f..56b8cb1 100644
--- a/src/gui/widgets/qmenu.cpp
+++ b/src/gui/widgets/qmenu.cpp
@@ -150,7 +150,6 @@ private:
void QMenuPrivate::init()
{
Q_Q(QMenu);
- activationRecursionGuard = false;
#ifndef QT_NO_WHATSTHIS
q->setAttribute(Qt::WA_CustomWhatsThis);
#endif
@@ -2712,7 +2711,7 @@ void QMenu::mouseMoveEvent(QMouseEvent *e)
d->motions++;
if (d->motions == 0) // ignore first mouse move event (see enterEvent())
return;
- d->hasHadMouse |= rect().contains(e->pos());
+ d->hasHadMouse = d->hasHadMouse || rect().contains(e->pos());
QAction *action = d->actionAt(e->pos());
if (!action) {