summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstoolbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2011-04-23 14:26:42 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2011-05-15 14:35:40 +0200
commit090ce0fe679386a426df25b1f0702a002af3a2c0 (patch)
tree08f512076e67c39fbdd80dddf00c1944ee8dcd8a /src/bookmarks/bookmarkstoolbar.cpp
parentOpen source code by loading the page HTML instead of requesting (another time... (diff)
downloadrekonq-090ce0fe679386a426df25b1f0702a002af3a2c0.tar.xz
Null action for root bk folder in the bar
Diffstat (limited to 'src/bookmarks/bookmarkstoolbar.cpp')
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp
index 57d56fff..1f1e38c3 100644
--- a/src/bookmarks/bookmarkstoolbar.cpp
+++ b/src/bookmarks/bookmarkstoolbar.cpp
@@ -189,13 +189,18 @@ KToolBar* BookmarkToolBar::toolBar()
void BookmarkToolBar::contextMenu(const QPoint &point)
{
KBookmarkActionInterface *action = dynamic_cast<KBookmarkActionInterface*>(toolBar()->actionAt(point));
- KBookmark bookmark;
+ KBookmark bookmark = rApp->bookmarkProvider()->bookmarkManager()->toolbar();
+ bool nullAction = true;
if (action)
+ {
bookmark = action->bookmark();
+ nullAction = false;
+ }
BookmarksContextMenu menu(bookmark,
rApp->bookmarkProvider()->bookmarkManager(),
- rApp->bookmarkProvider()->bookmarkOwner());
+ rApp->bookmarkProvider()->bookmarkOwner(),
+ nullAction);
menu.exec(toolBar()->mapToGlobal(point));
}