summaryrefslogtreecommitdiff
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-17 18:56:28 +0200
commitdb84e519d1d46c048061c1b898264a038213d195 (patch)
tree0e40404928a8366e3c1f19be9d0c49a82af9c41b
parentChange the default tab number from 2 to 0 for Appearence Settings (diff)
downloadrekonq-db84e519d1d46c048061c1b898264a038213d195.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
-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())
{