#include "treeviewsidebarpage.h"
-#include "bookmarkselector.h"
+#include "kbookmarkmanager.h"
#include "dolphinmainwindow.h"
#include "dolphinsortfilterproxymodel.h"
#include "dolphinview.h"
#include <QItemSelectionModel>
#include <QTreeView>
#include <QVBoxLayout>
+#include "dolphinsettings.h"
// TODO: currently when using a proxy model the strange effect occurs
// that items get duplicated. Activate the following define to have the proxy
m_url = url;
// adjust the root of the tree to the base bookmark
- const KUrl baseUrl = BookmarkSelector::baseBookmark(url).url();
+ KBookmarkManager* bookmarkManager = DolphinSettings::instance().bookmarkManager();
+ const KUrl baseUrl = bookmarkManager->root().closestBookmark(url).url();
if (m_dirLister->url() != baseUrl) {
m_dirLister->stop();
m_dirLister->openUrl(baseUrl);