diff options
| author | David Faure <[email protected]> | 2007-03-26 20:32:50 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-26 20:32:50 +0000 |
| commit | 581a2b1c642ae259a2e0990a5ea7bef3286cd412 (patch) | |
| tree | ff875ee8f2df09b36196fb8a10087eeb12f76d0f /src/dolphinsettings.cpp | |
| parent | ad6c01d200e2504de1a383355bd82906fe5c06ed (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/dolphinsettings.cpp')
| -rw-r--r-- | src/dolphinsettings.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/dolphinsettings.cpp b/src/dolphinsettings.cpp index 7e3388524..837a5f4d1 100644 --- a/src/dolphinsettings.cpp +++ b/src/dolphinsettings.cpp @@ -47,18 +47,7 @@ DolphinSettings& DolphinSettings::instance() KBookmark DolphinSettings::bookmark(int index) const { - int i = 0; - KBookmarkGroup root = bookmarkManager()->root(); - KBookmark bookmark = root.first(); - while (!bookmark.isNull()) { - if (i == index) { - return bookmark; - } - ++i; - bookmark = root.next(bookmark); - } - - return KBookmark(); + return bookmarkManager()->findByAddress( QString('/')+QString::number(index) ); } KBookmarkManager* DolphinSettings::bookmarkManager() const |
