]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use user-places.xbel instead of bookmarks.xml in places model.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Mon, 27 Apr 2015 12:16:45 +0000 (14:16 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 29 Apr 2015 13:39:49 +0000 (15:39 +0200)
REVIEW: 123526
CCBUG: 345174
FIXED-IN: 15.08.0

src/panels/places/placesitemmodel.cpp

index bc7c2b7d3062215133fb5f594abed44dd3804a11..f3d3449634e73a230a1486f856707a88cdf5f1c8 100644 (file)
@@ -85,8 +85,8 @@ PlacesItemModel::PlacesItemModel(QObject* parent) :
     Baloo::IndexerConfig config;
     m_fileIndexingEnabled = config.fileIndexingEnabled();
 #endif
-    const QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kfileplaces/bookmarks.xml");
-    m_bookmarkManager = KBookmarkManager::managerForFile(file, "kfilePlaces");
+    const QString file = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/user-places.xbel";
+    m_bookmarkManager = KBookmarkManager::managerForExternalFile(file);
 
     createSystemBookmarks();
     initializeAvailableDevices();