]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Small cleanup + comment
[kdenlive] / src / kdenlivedoc.cpp
index f57e9efc34bc47ef37e6aa80e969a6f207925158..861fc28fda179ff2c6125718f09b0590246fb5f5 100644 (file)
@@ -1459,6 +1459,11 @@ bool KdenliveDoc::saveCustomEffects(QDomNodeList customeffects)
 
 void KdenliveDoc::updateProjectFolderPlacesEntry()
 {
+    /*
+     * For similar and more code have a look at kfileplacesmodel.cpp and the included files:
+     * http://websvn.kde.org/trunk/KDE/kdelibs/kfile/kfileplacesmodel.cpp?view=markup
+     */
+
     const QString file = KStandardDirs::locateLocal("data", "kfileplaces/bookmarks.xml");
     KBookmarkManager *bookmarkManager = KBookmarkManager::managerForFile(file, "kfilePlaces");
     KBookmarkGroup root = bookmarkManager->root();
@@ -1488,9 +1493,9 @@ void KdenliveDoc::updateProjectFolderPlacesEntry()
 
     // if entry does not exist yet (was not found), well, create it then
     if (!exists) {
-        KBookmark newBookmark = root.addBookmark(i18n("Project Folder"), documentLocation, "folder-favorites");
+        bookmark = root.addBookmark(i18n("Project Folder"), documentLocation, "folder-favorites");
         // Make this user selectable ?
-        newBookmark.setMetaDataItem("OnlyInApp", kdenliveName);
+        bookmark.setMetaDataItem("OnlyInApp", kdenliveName);
         bookmarkManager->emitChanged(root);
     }
 }