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

index b296baa08a26c245d08ff4e541fe1a19784a59c4..c28579ee6d4d995dae7d6213883fe38572cbc017 100644 (file)
@@ -1848,7 +1848,7 @@ void MainWindow::readOptions()
 
 void MainWindow::slotRunWizard()
 {
-    Wizard *w = new Wizard(false, this);
+    QPointer<Wizard> w = new Wizard(false, this);
     if (w->exec() == QDialog::Accepted && w->isOk()) {
         w->adjustSettings();
     }