┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/urlnavigator.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-03-26 20:32:50 +0000
committerDavid Faure <[email protected]>2007-03-26 20:32:50 +0000
commit581a2b1c642ae259a2e0990a5ea7bef3286cd412 (patch)
treeff875ee8f2df09b36196fb8a10087eeb12f76d0f /src/urlnavigator.cpp
parentad6c01d200e2504de1a383355bd82906fe5c06ed (diff)
A small step in trying to make urlnavigator useable in kdelibs for the file dialog:
remove dependency on DolphinSettings::bookmarkManager(). svn path=/trunk/KDE/kdebase/apps/; revision=646880
Diffstat (limited to 'src/urlnavigator.cpp')
-rw-r--r--src/urlnavigator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp
index 1a49b386b..ca3b1789c 100644
--- a/src/urlnavigator.cpp
+++ b/src/urlnavigator.cpp
@@ -65,7 +65,8 @@ UrlNavigator::HistoryElem::~HistoryElem()
{
}
-UrlNavigator::UrlNavigator(const KUrl& url,
+UrlNavigator::UrlNavigator(KBookmarkManager* bookmarkManager,
+ const KUrl& url,
QWidget* parent) :
QWidget(parent),
m_active(true),
@@ -101,7 +102,7 @@ UrlNavigator::UrlNavigator(const KUrl& url,
}
// initialize the bookmark selector
- m_bookmarkSelector = new BookmarkSelector(this);
+ m_bookmarkSelector = new BookmarkSelector(this, bookmarkManager);
connect(m_bookmarkSelector, SIGNAL(bookmarkActivated(const KUrl&)),
this, SLOT(setUrl(const KUrl&)));
@@ -532,7 +533,6 @@ void UrlNavigator::updateContent()
// get the data from the currently selected bookmark
KBookmark bookmark = m_bookmarkSelector->selectedBookmark();
- //int bookmarkIndex = m_bookmarkSelector->selectedIndex();
QString bookmarkPath;
if (bookmark.isNull()) {