]> git.sesse.net Git - kdenlive/commitdiff
Fixed: Rendering possible again
authorSimon A. Eugster <simon.eu@gmail.com>
Fri, 24 Jul 2009 19:47:50 +0000 (19:47 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Fri, 24 Jul 2009 19:47:50 +0000 (19:47 +0000)
svn path=/trunk/kdenlive/; revision=3763

src/renderwidget.cpp

index e3c0c43eb3df9cf5d2aeb55f6a21143bac2014f6..eb120bfc772f5245feb2a75c1464513cb74e3cc8 100644 (file)
@@ -596,7 +596,7 @@ void RenderWidget::slotPrepareExport(bool scriptExport)
     if (m_view.create_chapter->isChecked()) chapterFile = m_view.out_file->url().path() + ".dvdchapter";
 
     // mantisbt 1051
-    KStandardDirs::makeDir(m_view.out_file->url().path(KUrl::AddTrailingSlash));
+    KStandardDirs::makeDir(m_view.out_file->url().directory());
 
     emit prepareRenderingData(scriptExport, m_view.render_zone->isChecked(), chapterFile);
 }
@@ -613,7 +613,7 @@ void RenderWidget::slotExport(bool scriptExport, int zoneIn, int zoneOut, const
     // Check whether target file has an extension.
     // If not, ask whether extension should be added or not.
     QString extension = item->data(ExtensionRole).toString();
-    if (!dest.endsWith(extension)) {
+    if (!dest.endsWith(extension, Qt::CaseInsensitive)) {
         if (KMessageBox::questionYesNo(this, i18n("File has no extension. Add extension (%1)?", extension)) == KMessageBox::Yes) {
             dest.append("." + extension);
         }