From 18e6edb680d40e260fb4b4ff0f1c3d14eb5d3428 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 23 Jul 2012 09:06:53 +0200 Subject: [PATCH] slotRunWizard: Use QPointer [krazy 20/37] by Mikko Rapeli --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b296baa0..c28579ee 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1848,7 +1848,7 @@ void MainWindow::readOptions() void MainWindow::slotRunWizard() { - Wizard *w = new Wizard(false, this); + QPointer w = new Wizard(false, this); if (w->exec() == QDialog::Accepted && w->isOk()) { w->adjustSettings(); } -- 2.39.2