]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
Fix crash in backup widget, don't open a file if it is not a Kdenlive project
[kdenlive] / src / mainwindow.cpp
index 54ed5506ede8a1c314a74fde015101250268dd28..902e8519872dc85c66aa4bc9feff547554afdc3e 100644 (file)
@@ -1960,6 +1960,11 @@ void MainWindow::openFile(const KUrl &url)
         delete ar;
         return;
     }
+    if (!url.fileName().endsWith(".kdenlive")) {
+        // This is not a Kdenlive project file, abort loading
+        KMessageBox::sorry(this, i18n("File %1 is not a Kdenlive project file", url.path()));
+        return;
+    }
     
     // Check if the document is already opened
     const int ct = m_timelineArea->count();