[Kdenlive-devel] [PATCH 20/37] slotRunWizard: Use QPointer
Mikko Rapeli
mikko.rapeli at iki.fi
Thu Jun 28 13:52:58 UTC 2012
Fixes crashes if parent is destroyed. Found by krazy. Details at:
http://blogs.kde.org/node/3919
---
src/mainwindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b296baa..c28579e 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<Wizard> w = new Wizard(false, this);
if (w->exec() == QDialog::Accepted && w->isOk()) {
w->adjustSettings();
}
--
1.7.10.4
More information about the Kdenlive
mailing list