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

index 3cef47677b63e1a617d678cb802fa9dc3909b14d..aba469b054e26cd0af6b9822e929b00fdfa33491 100644 (file)
@@ -3847,9 +3847,10 @@ void MainWindow::slotDvdWizard(const QString &url, const QString &profile)
     // We must stop the monitors since we create a new on in the dvd wizard
     m_clipMonitor->stop();
     m_projectMonitor->stop();
-    DvdWizard w(url, profile, this);
-    w.exec();
+    QPointer<DvdWizard> w = new DvdWizard(url, profile, this);
+    w->exec();
     m_projectMonitor->start();
+    delete w;
 }
 
 void MainWindow::slotShowTimeline(bool show)