Use QPointer [krazy 7/37] by Mikko Rapeli

parent 60124461
......@@ -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);
......
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