From 0814981840cc65fb0ce2b4f2c6cd3347facddd06 Mon Sep 17 00:00:00 2001 From: Alberto Villa Date: Wed, 10 Jun 2009 18:33:37 +0000 Subject: [PATCH] always use defaults when possible svn path=/trunk/kdenlive/; revision=3512 --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0cdc7e1f..fd8adfc0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1210,6 +1210,7 @@ void MainWindow::newFile(bool showProjectSettings) if (!showProjectSettings && m_timelineArea->count() == 0) { if (!KdenliveSettings::activatetabs()) closeCurrentDocument(); profileName = KdenliveSettings::default_profile(); + projectFolder = KdenliveSettings::defaultprojectfolder(); } else { ProjectSettings *w = new ProjectSettings(projectTracks.x(), projectTracks.y(), KdenliveSettings::defaultprojectfolder(), false, this); if (w->exec() != QDialog::Accepted) return; @@ -1402,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(3, 2), m_projectMonitor->render, this); + KdenliveDoc *doc = new KdenliveDoc(url, KUrl(), m_commandStack, QString(), QPoint(KdenliveSettings::videotracks(), KdenliveSettings::audiotracks()), m_projectMonitor->render, this); if (stale == NULL) { stale = new KAutoSaveFile(url, doc); doc->m_autosave = stale; -- 2.39.2