]> git.sesse.net Git - kdenlive/commitdiff
Try to fix "save as" crash:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 27 Oct 2011 12:51:48 +0000 (12:51 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 27 Oct 2011 12:51:48 +0000 (12:51 +0000)
http://kdenlive.org/mantis/view.php?id=2363

svn path=/trunk/kdenlive/; revision=5994

src/kdenlivedoc.cpp

index 4ff91c7bf2dd2bb83e236b421c9ebf1c7bec49f6..011f0cfa601c212422aec0d09340ec76c88f5dd1 100644 (file)
@@ -1574,7 +1574,9 @@ void KdenliveDoc::updateProjectFolderPlacesEntry()
 
     const QString file = KStandardDirs::locateLocal("data", "kfileplaces/bookmarks.xml");
     KBookmarkManager *bookmarkManager = KBookmarkManager::managerForFile(file, "kfilePlaces");
+    if (!bookmarkManager) return;
     KBookmarkGroup root = bookmarkManager->root();
+    
     KBookmark bookmark = root.first();
 
     QString kdenliveName = KGlobal::mainComponent().componentName();