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 4529d9b..4edb4b5 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2306,7 +2306,7 @@ void MainWindow::slotDetectAudioDriver()
void MainWindow::slotEditProjectSettings()
{
QPoint p = m_activeDocument->getTracksCount();
- ProjectSettings *w = new ProjectSettings(m_projectList,
m_activeDocument->metadata(),
m_activeTimeline->projectView()->extractTransitionsLumas(), p.x(), p.y(),
m_activeDocument->projectFolder().path(), true,
!m_activeDocument->isModified(), this);
+ QPointer<ProjectSettings> w = new ProjectSettings(m_projectList,
m_activeDocument->metadata(),
m_activeTimeline->projectView()->extractTransitionsLumas(), p.x(), p.y(),
m_activeDocument->projectFolder().path(), true,
!m_activeDocument->isModified(), this);
connect(w, SIGNAL(disableProxies()), this, SLOT(slotDisableProxies()));
if (w->exec() == QDialog::Accepted) {
--
1.7.10.4