diff options
Diffstat (limited to 'src/bookmarks/bookmarkstoolbar.cpp')
-rw-r--r-- | src/bookmarks/bookmarkstoolbar.cpp | 9 |
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)); } |