summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoann <yoann.laissus@gmail.com>2010-12-09 00:11:59 +0100
committerYoann <yoann.laissus@gmail.com>2010-12-09 00:11:59 +0100
commite1716cecc449e19818d5dd184d09d7600460b92d (patch)
treef280284371ee0e7d81a66ff4afe0ee896ebec1cb /src
parentmerge first Google Code-In submission: (diff)
downloadrekonq-e1716cecc449e19818d5dd184d09d7600460b92d.tar.xz
Don't change the BK folder in the BK bar when the mouse is under the current menu
BUG: 259244
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp2
1 files changed, 1 insertions, 1 deletions
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<KBookmarkActionMenu *>(toolBar()->actionAt(toolBar()->mapFromGlobal(QCursor::pos())));