]> git.sesse.net Git - kdenlive/commitdiff
Use QPointer [krazy 1/37] by Mikko Rapeli
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 06:18:56 +0000 (08:18 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 06:18:56 +0000 (08:18 +0200)
src/recmonitor.cpp

index 83b3ec1d82882dd454636c8e0c2d35aacd3d7ac8..1ffd419ac5166157eb397a73c582fbebfe97b953 100644 (file)
@@ -884,7 +884,7 @@ void RecMonitor::manageCapturedFiles()
     kDebug() << capturedFiles;
 
     if (capturedFiles.count() > 0) {
-        ManageCapturesDialog *d = new ManageCapturesDialog(capturedFiles, this);
+        QPointer<ManageCapturesDialog> d = new ManageCapturesDialog(capturedFiles, this);
         if (d->exec() == QDialog::Accepted) {
             emit addProjectClipList(d->importFiles());
         }