diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2011-10-17 18:56:28 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2011-10-17 18:56:28 +0200 |
commit | db84e519d1d46c048061c1b898264a038213d195 (patch) | |
tree | 0e40404928a8366e3c1f19be9d0c49a82af9c41b /src/bookmarks | |
parent | Change the default tab number from 2 to 0 for Appearence Settings (diff) | |
download | rekonq-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
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/bookmarkstoolbar.cpp | 4 |
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()) { |