]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.cpp
slotDvdWizard: Use QPointer [krazy 30/37] by Mikko Rapeli
[kdenlive] / src / titlewidget.cpp
index d2e35d8501d11927495654db7dce0d49fc82072e..455471b4b71cf137625219ec74e28ef1d81e3717 100644 (file)
@@ -1847,7 +1847,7 @@ void TitleWidget::saveTitle(KUrl url)
         embed_image=true;      
     }
     if (url.isEmpty()) {
-        KFileDialog *fs = new KFileDialog(KUrl(m_projectTitlePath), "application/x-kdenlivetitle", this);
+        QPointer<KFileDialog> fs = new KFileDialog(KUrl(m_projectTitlePath), "application/x-kdenlivetitle", this);
         fs->setOperationMode(KFileDialog::Saving);
         fs->setMode(KFile::File);
         fs->setConfirmOverwrite(true);