┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/treeviewsidebarpage.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-03-26 23:04:43 +0000
committerDavid Faure <[email protected]>2007-03-26 23:04:43 +0000
commit85bc196887fbed01187e3830cd28c2500cb01cb2 (patch)
tree98cde59002e2e1214e61a328c253ba58546bb532 /src/treeviewsidebarpage.cpp
parentc6bc5511a8ba05d8f44217b404d615d4d56bb53f (diff)
Ported to KBookmarkManager::closestBookmark - which even solves another TODO about code duplication.
Improved urlnavigator API to avoid exposing the full QList (api independent from implementation now). svn path=/trunk/KDE/kdebase/apps/; revision=646954
Diffstat (limited to 'src/treeviewsidebarpage.cpp')
-rw-r--r--src/treeviewsidebarpage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/treeviewsidebarpage.cpp b/src/treeviewsidebarpage.cpp
index aef455c1e..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"
@@ -99,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(DolphinSettings::instance().bookmarkManager(), 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);