summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2011-01-10 17:52:47 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-10 17:52:47 +0100
commit5c5d7e2139ef251c23c8462e502c49421b4588a7 (patch)
treed31518650d46f05eccaf3df18e9a1648b2b49e21 /src/bookmarks
parentFixing the fix that is just been fixed :) (diff)
downloadrekonq-5c5d7e2139ef251c23c8462e502c49421b4588a7.tar.xz
"Open folder in Tabs" feature
Reviewed by: Benjamin Poulain
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarkowner.cpp5
-rw-r--r--src/bookmarks/bookmarkowner.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/bookmarks/bookmarkowner.cpp b/src/bookmarks/bookmarkowner.cpp
index c684897e..b7aa4a4e 100644
--- a/src/bookmarks/bookmarkowner.cpp
+++ b/src/bookmarks/bookmarkowner.cpp
@@ -177,9 +177,10 @@ void BookmarkOwner::openBookmarkInNewWindow(const KBookmark &bookmark)
}
-void BookmarkOwner::openBookmarkFolder(const KBookmarkGroup &bookmark)
+void BookmarkOwner::openBookmarkFolder(const KBookmark &bookmark)
{
- openFolderinTabs(bookmark);
+ Q_ASSERT(bookmark.isGroup());
+ openFolderinTabs(bookmark.toGroup());
}
diff --git a/src/bookmarks/bookmarkowner.h b/src/bookmarks/bookmarkowner.h
index 4d377191..4e3f0b11 100644
--- a/src/bookmarks/bookmarkowner.h
+++ b/src/bookmarks/bookmarkowner.h
@@ -95,7 +95,7 @@ public Q_SLOTS:
void openBookmark(const KBookmark &bookmark);
void openBookmarkInNewTab(const KBookmark &bookmark);
void openBookmarkInNewWindow(const KBookmark &bookmark);
- void openBookmarkFolder(const KBookmarkGroup &bookmark);
+ void openBookmarkFolder(const KBookmark &bookmark);
KBookmark bookmarkCurrentPage(const KBookmark &bookmark = KBookmark());
KBookmarkGroup newBookmarkFolder(const KBookmark &bookmark = KBookmark());