]> git.sesse.net Git - kdenlive/commitdiff
openFile: Use QPointer [krazy 22/37] by Mikko Rapeli
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 07:08:55 +0000 (09:08 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 07:08:55 +0000 (09:08 +0200)
src/mainwindow.cpp

index b64eba7a0b80a54f2c4f13cbda70091a4f4c2e0b..81228a9be646d547e900e26f2bbaae128e45a073 100644 (file)
@@ -2062,7 +2062,7 @@ void MainWindow::openFile(const KUrl &url)
     if (mime.data()->is("application/x-compressed-tar")) {
         // Opening a compressed project file, we need to process it
         kDebug()<<"Opening archive, processing";
-        ArchiveWidget *ar = new ArchiveWidget(url);
+        QPointer<ArchiveWidget> ar = new ArchiveWidget(url);
         if (ar->exec() == QDialog::Accepted) openFile(KUrl(ar->extractedProjectFile()));
         delete ar;
         return;