]> git.sesse.net Git - kdenlive/commitdiff
Point to project directory when saving a new project.
authorSimon A. Eugster <simon.eu@gmail.com>
Sat, 24 Jul 2010 11:17:37 +0000 (11:17 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Sat, 24 Jul 2010 11:17:37 +0000 (11:17 +0000)
http://www.kdenlive.org/mantis/view.php?id=1668

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

src/mainwindow.cpp

index 33e1e48401ba824f2eebe60f37af7bb0a60f181b..faef4b2dd9190dcee87689cdd818b92fbf0e2e08 100644 (file)
@@ -1681,8 +1681,8 @@ bool MainWindow::saveFileAs(const QString &outputFileName)
 
 bool MainWindow::saveFileAs()
 {
-    QString outputFile = KFileDialog::getSaveFileName(KUrl(), getMimeType());
-    if (outputFile.isEmpty()) return false;
+    QString outputFile = KFileDialog::getSaveFileName(m_activeDocument->projectFolder(), getMimeType());
+    if (outputFile.isEmpty()) { return false; }
     if (QFile::exists(outputFile)) {
         // Show the file dialog again if the user does not want to overwrite the file
         if (KMessageBox::questionYesNo(this, i18n("File already exists.\nDo you want to overwrite it?")) == KMessageBox::No)