]> git.sesse.net Git - kdenlive/commitdiff
use defaults when possible (also to avoid an unneeded message box when failing the...
authorAlberto Villa <avilla@FreeBSD.org>
Thu, 11 Jun 2009 01:58:32 +0000 (01:58 +0000)
committerAlberto Villa <avilla@FreeBSD.org>
Thu, 11 Jun 2009 01:58:32 +0000 (01:58 +0000)
svn path=/trunk/kdenlive/; revision=3516

src/mainwindow.cpp

index 0d87edfcd11840c312ee55ecc12642884cbe91df..18974fda3e6cbeaf4816b9bf5094564ae8330dd4 100644 (file)
@@ -1403,7 +1403,7 @@ void MainWindow::openFile(const KUrl &url)
 
 void MainWindow::doOpenFile(const KUrl &url, KAutoSaveFile *stale)
 {
-    KdenliveDoc *doc = new KdenliveDoc(url, KUrl(), m_commandStack, QString(), QPoint(KdenliveSettings::videotracks(), KdenliveSettings::audiotracks()), m_projectMonitor->render, this);
+    KdenliveDoc *doc = new KdenliveDoc(url, KdenliveSettings::defaultprojectfolder(), m_commandStack, KdenliveSettings::default_profile(), QPoint(KdenliveSettings::videotracks(), KdenliveSettings::audiotracks()), m_projectMonitor->render, this);
     if (stale == NULL) {
         stale = new KAutoSaveFile(url, doc);
         doc->m_autosave = stale;