If "open folder in tabs" is selected in the bookmark menu, only the top-level 
bookmarks are opened. Bookmarks in subfolders are not considered.

With the attached patch rekonq loads all bookmarks inside the chosen folder, 
no matter of their depth.
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp
index e7f572b..055d2fa 100644
--- a/src/bookmarks.cpp
+++ b/src/bookmarks.cpp
@@ -95,11 +95,19 @@ QString BookmarkOwner::currentTitle() const
 
 void BookmarkOwner::openFolderinTabs(const KBookmarkGroup &bm)
 {
-    QList<KUrl> urlList = bm.groupUrlList();
-    QList<KUrl>::iterator url;
-    for (url = urlList.begin(); url != urlList.end(); ++url)
+    KBookmark bookmark = bm.first();
+    while (!bookmark.isNull())
     {
-        Application::instance()->loadUrl(*url, Rekonq::NewCurrentTab);
+        if (bookmark.isGroup())
+        {
+            openFolderinTabs(bookmark.toGroup());
+        }
+        else
+        {
+            Application::instance()->loadUrl(bookmark.url(), Rekonq::NewCurrentTab);
+        }
+        
+        bookmark = bm.next(bookmark);
     }
 }
 
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to