From e1716cecc449e19818d5dd184d09d7600460b92d Mon Sep 17 00:00:00 2001 From: Yoann Date: Thu, 9 Dec 2010 00:11:59 +0100 Subject: Don't change the BK folder in the BK bar when the mouse is under the current menu BUG: 259244 --- src/bookmarks/bookmarkstoolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp index ae5c9d6e..63092b8d 100644 --- a/src/bookmarks/bookmarkstoolbar.cpp +++ b/src/bookmarks/bookmarkstoolbar.cpp @@ -227,7 +227,7 @@ void BookmarkToolBar::hideMenu() bool BookmarkToolBar::eventFilter(QObject *watched, QEvent *event) { - if (m_currentMenu && m_currentMenu->isVisible()) + if (m_currentMenu && m_currentMenu->isVisible() && !m_currentMenu->rect().contains(m_currentMenu->mapFromGlobal(QCursor::pos()))) { // To switch root folders as in a menubar KBookmarkActionMenu* act = dynamic_cast(toolBar()->actionAt(toolBar()->mapFromGlobal(QCursor::pos()))); -- cgit v1.2.1