From: Jean-Baptiste Mardelle Date: Mon, 23 Jul 2012 07:14:34 +0000 (+0200) Subject: slotDvdWizard: Use QPointer [krazy 30/37] by Mikko Rapeli X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0b80c8c148ccc0510440e47afd0e76a2a3cb035c;p=kdenlive slotDvdWizard: Use QPointer [krazy 30/37] by Mikko Rapeli --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3cef4767..aba469b0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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 w = new DvdWizard(url, profile, this); + w->exec(); m_projectMonitor->start(); + delete w; } void MainWindow::slotShowTimeline(bool show)