summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2011-10-17 18:56:28 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2011-10-19 20:47:41 +0200
commit6d5391c9baf5d7f6d0343bcad05c0ae713c425f1 (patch)
tree9bd42112688672b657a92861c94a3e42add70db3 /src
parentFix the recover on crash bar which is too big to fit on the screen when rekon... (diff)
downloadrekonq-6d5391c9baf5d7f6d0343bcad05c0ae713c425f1.tar.xz
Disable bookmark dragging with middle click in the bookmark toolbar.
It's now easier to open bookmark in new tab with a quick mid click
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp
index bad9b220..9015b748 100644
--- a/src/bookmarks/bookmarkstoolbar.cpp
+++ b/src/bookmarks/bookmarkstoolbar.cpp
@@ -503,8 +503,10 @@ bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event)
break;
}
+ QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
+
// These events need to be handled only for Bookmark actions and not the bar
- if (watched != toolBar())
+ if (watched != toolBar() && mouseEvent && mouseEvent->button() == Qt::LeftButton)
{
switch (event->type())
{