Fix frame and titles not saved if extension not explicitly set in some config

parent c2ad952e
...@@ -937,6 +937,7 @@ void Monitor::slotExtractCurrentFrame(QString path) ...@@ -937,6 +937,7 @@ void Monitor::slotExtractCurrentFrame(QString path)
QPointer<QFileDialog> fs = new QFileDialog(this, i18n("Save Image"), framesFolder); QPointer<QFileDialog> fs = new QFileDialog(this, i18n("Save Image"), framesFolder);
fs->setMimeTypeFilters(QStringList() << QStringLiteral("image/png")); fs->setMimeTypeFilters(QStringList() << QStringLiteral("image/png"));
fs->setAcceptMode(QFileDialog::AcceptSave); fs->setAcceptMode(QFileDialog::AcceptSave);
fs->setDefaultSuffix(QStringLiteral("png"));
fs->selectFile(path); fs->selectFile(path);
if (fs->exec()) { if (fs->exec()) {
if (!fs->selectedFiles().isEmpty()) { if (!fs->selectedFiles().isEmpty()) {
......
...@@ -1877,6 +1877,7 @@ void TitleWidget::saveTitle(QUrl url) ...@@ -1877,6 +1877,7 @@ void TitleWidget::saveTitle(QUrl url)
fs->setMimeTypeFilters(QStringList() << QStringLiteral("application/x-kdenlivetitle")); fs->setMimeTypeFilters(QStringList() << QStringLiteral("application/x-kdenlivetitle"));
fs->setFileMode(QFileDialog::AnyFile); fs->setFileMode(QFileDialog::AnyFile);
fs->setAcceptMode(QFileDialog::AcceptSave); fs->setAcceptMode(QFileDialog::AcceptSave);
fs->setDefaultSuffix(QStringLiteral("kdenlivetitle"));
//TODO: KF5 porting? //TODO: KF5 porting?
//fs->setConfirmOverwrite(true); //fs->setConfirmOverwrite(true);
//fs->setKeepLocation(true); //fs->setKeepLocation(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