X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8f9baef848c3056cd1df772f0774decad509cff3..85bc196887fbed01187e3830cd28c2500cb01cb2:/src/treeviewsidebarpage.cpp diff --git a/src/treeviewsidebarpage.cpp b/src/treeviewsidebarpage.cpp index 19feb5874..523e21a78 100644 --- a/src/treeviewsidebarpage.cpp +++ b/src/treeviewsidebarpage.cpp @@ -19,7 +19,7 @@ #include "treeviewsidebarpage.h" -#include "bookmarkselector.h" +#include "kbookmarkmanager.h" #include "dolphinmainwindow.h" #include "dolphinsortfilterproxymodel.h" #include "dolphinview.h" @@ -34,6 +34,7 @@ #include #include #include +#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 @@ -98,7 +99,8 @@ void TreeViewSidebarPage::setUrl(const KUrl& url) 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);