Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > 6a6037a72fe4fe07e6ae3cf1acaf9d61 > files > 7

kdelibs4-4.4.5-0.1mdv2010.1.src.rpm

Index: kfile/kfileplacesmodel.cpp
===================================================================
--- kfile/kfileplacesmodel.cpp
+++ kfile/kfileplacesmodel.cpp	2010-02-15 10:55:14.000000000 +0100
@@ -37,6 +37,7 @@
 #include <kicon.h>
 #include <kmimetype.h>
 #include <kdebug.h>
+#include <kprotocolmanager.h>
 
 #include <kbookmarkmanager.h>
 #include <kbookmark.h>
@@ -143,6 +144,11 @@
                                               "Trash", I18N_NOOP2("KFile System Bookmarks", "Trash"),
                                               KUrl("trash:/"), "user-trash");
 
+        if(KProtocolManager::supportsListing(KUrl("timeline:/")))
+            KFilePlacesItem::createSystemBookmark(d->bookmarkManager,
+                                                  "Browse by date", I18N_NOOP2("KFile System Bookmarks", "Browse by date"),
+                                                  KUrl("timeline:/"), "nepomuk");
+
         // Force bookmarks to be saved. If on open/save dialog and the bookmarks are not saved, QFile::exists
         // will always return false, which opening/closing all the time the open/save dialog would case the
         // bookmarks to be added once each time, having lots of times each bookmark. This forces the defaults