Sandro Santilli
2016-06-02 19:20:02 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via f6a0b382f752e919a6c53f5c619e1eaf2189be74 (commit)
from 5ad81af90b1b2ab6525eb0c49ba021c6b0b1f621 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=f6a0b382f752e919a6c53f5c619e1eaf2189be74
commit f6a0b382f752e919a6c53f5c619e1eaf2189be74
Author: Dag Hovland <***@gmail.com>
Date: Thu Jun 2 21:19:29 2016 +0200
Prevent right click from signaling a mousedown in Qt-based gui
Fixes bug #48066
diff --git a/gui/qt/Qt4Glue.cpp b/gui/qt/Qt4Glue.cpp
index 83f05eb..c3245d6 100644
--- a/gui/qt/Qt4Glue.cpp
+++ b/gui/qt/Qt4Glue.cpp
@@ -75,9 +75,10 @@ DrawingWidget::contextMenuEvent(QContextMenuEvent* event)
}
void
-DrawingWidget::mousePressEvent(QMouseEvent* /* event */)
+DrawingWidget::mousePressEvent(QMouseEvent* event)
{
- _gui.notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _gui.notifyMouseClick(true);
}
void
diff --git a/gui/qt/kde.cpp b/gui/qt/kde.cpp
index 1a3f544..0a31f7c 100644
--- a/gui/qt/kde.cpp
+++ b/gui/qt/kde.cpp
@@ -451,9 +451,10 @@ qwidget::contextMenuEvent(QContextMenuEvent*)
#endif
void
-qwidget::mousePressEvent(QMouseEvent* /* event */)
+qwidget::mousePressEvent(QMouseEvent* event)
{
- _godfather->notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _godfather->notifyMouseClick(true);
}
void
-----------------------------------------------------------------------
Summary of changes:
gui/qt/Qt4Glue.cpp | 5 +++--
gui/qt/kde.cpp | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
hooks/post-receive
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via f6a0b382f752e919a6c53f5c619e1eaf2189be74 (commit)
from 5ad81af90b1b2ab6525eb0c49ba021c6b0b1f621 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=f6a0b382f752e919a6c53f5c619e1eaf2189be74
commit f6a0b382f752e919a6c53f5c619e1eaf2189be74
Author: Dag Hovland <***@gmail.com>
Date: Thu Jun 2 21:19:29 2016 +0200
Prevent right click from signaling a mousedown in Qt-based gui
Fixes bug #48066
diff --git a/gui/qt/Qt4Glue.cpp b/gui/qt/Qt4Glue.cpp
index 83f05eb..c3245d6 100644
--- a/gui/qt/Qt4Glue.cpp
+++ b/gui/qt/Qt4Glue.cpp
@@ -75,9 +75,10 @@ DrawingWidget::contextMenuEvent(QContextMenuEvent* event)
}
void
-DrawingWidget::mousePressEvent(QMouseEvent* /* event */)
+DrawingWidget::mousePressEvent(QMouseEvent* event)
{
- _gui.notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _gui.notifyMouseClick(true);
}
void
diff --git a/gui/qt/kde.cpp b/gui/qt/kde.cpp
index 1a3f544..0a31f7c 100644
--- a/gui/qt/kde.cpp
+++ b/gui/qt/kde.cpp
@@ -451,9 +451,10 @@ qwidget::contextMenuEvent(QContextMenuEvent*)
#endif
void
-qwidget::mousePressEvent(QMouseEvent* /* event */)
+qwidget::mousePressEvent(QMouseEvent* event)
{
- _godfather->notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _godfather->notifyMouseClick(true);
}
void
-----------------------------------------------------------------------
Summary of changes:
gui/qt/Qt4Glue.cpp | 5 +++--
gui/qt/kde.cpp | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
hooks/post-receive
--
Gnash
Gnash