Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 7c939f72536681d52c6ed4ad762d4058 > files > 5

kdelibs4-4.6.5-1.3.mga1.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