From 0b80c8c148ccc0510440e47afd0e76a2a3cb035c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 23 Jul 2012 09:14:34 +0200 Subject: [PATCH] slotDvdWizard: Use QPointer [krazy 30/37] by Mikko Rapeli --- src/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2