summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())
{