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-19 20:47:41 +0200 |
commit | 6d5391c9baf5d7f6d0343bcad05c0ae713c425f1 (patch) | |
tree | 9bd42112688672b657a92861c94a3e42add70db3 /src | |
parent | Fix the recover on crash bar which is too big to fit on the screen when rekon... (diff) | |
download | rekonq-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.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()) { |