Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 38f4339c5e17532be827bad1f3068f65 > files > 9

kdelibs4-4.14.5-1.1.mga5.src.rpm

Index: kfile/kfileplacesmodel.cpp
===================================================================
--- kdelibs/kfile/kfileplacesmodel.cpp
+++ kdelibs/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