slotRunWizard: Use QPointer [krazy 20/37] by Mikko Rapeli

parent 2c520f24
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment