Commit e52ec8f4 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Revert removal to allow Bookmark tabs as Folders to work

This reverts d0ae5983 which was
mistakenly removed.
parent 00c20b24
......@@ -144,6 +144,19 @@ QString BookmarkHandler::iconForView(ViewProperties *view) const
return {};
}
QList<KBookmarkOwner::FutureBookmark> BookmarkHandler::currentBookmarkList() const
{
QList<KBookmarkOwner::FutureBookmark> list;
list.reserve(_views.size());
const QList<ViewProperties *> views = _views;
for (ViewProperties* view : views) {
list << KBookmarkOwner::FutureBookmark(titleForView(view), urlForView(view), iconForView(view));
}
return list;
}
bool BookmarkHandler::supportsTabs() const
{
return true;
......
......@@ -69,6 +69,7 @@ public:
QString currentIcon() const override;
bool enableOption(BookmarkOption option) const override;
bool supportsTabs() const override;
QList<KBookmarkOwner::FutureBookmark> currentBookmarkList() const override;
void openFolderinTabs(const KBookmarkGroup &group) override;
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment