Commit cac97675 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Set the default file type

parent 1662b3c0
......@@ -120,6 +120,7 @@ DlgAnimationRenderer::DlgAnimationRenderer(KisImageWSP image, QWidget *parent)
}
}
m_page->videoFilename->setMode(KoFileDialog::SaveFile);
m_page->dirRequester->setStartDir(QStandardPaths::writableLocation(QStandardPaths::PicturesLocation));
qDeleteAll(list);
connect(m_page->cmbRenderType, SIGNAL(activated(int)), this, SLOT(selectRenderType(int)));
......@@ -241,7 +242,7 @@ void DlgAnimationRenderer::selectRenderType(int index)
QSharedPointer<KisImportExportFilter> filter = m_renderFilters[index];
QString mimetype = m_page->cmbRenderType->itemData(index).toString();
m_page->videoFilename->setMimeTypeFilters(QStringList() << mimetype);
m_page->videoFilename->setMimeTypeFilters(QStringList() << mimetype, mimetype);
if (filter) {
m_encoderConfigWidget = filter->createConfigurationWidget(m_page->grpExportOptions, KisDocument::nativeFormatMimeType(), mimetype.toLatin1());
......
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