]> git.sesse.net Git - kdenlive/commitdiff
Don't show error message on customprofiles.xml if file does not exist
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 1 Oct 2008 10:23:10 +0000 (10:23 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 1 Oct 2008 10:23:10 +0000 (10:23 +0000)
svn path=/branches/KDE4/; revision=2420

src/renderwidget.cpp

index 39c3ca9096bb42d0937b76f9a0c33b847d4dea94..d8f4a2e5ea978814db3d3494daa48e474ab06a22 100644 (file)
@@ -388,7 +388,7 @@ void RenderWidget::parseProfiles(QString group, QString profile) {
     QString exportFile = KStandardDirs::locate("appdata", "export/profiles.xml");
     parseFile(exportFile, false);
     exportFile = KStandardDirs::locateLocal("appdata", "export/customprofiles.xml");
-    parseFile(exportFile, true);
+    if (QFile::exists(exportFile)) parseFile(exportFile, true);
     refreshView();
     QList<QListWidgetItem *> child;
     child = m_view.format_list->findItems(group, Qt::MatchExactly);