Commit 989dacdf authored by Laurent Montel's avatar Laurent Montel
Browse files

Don't execute code if we cancel savefile dialogbox

parent d7e2372d
......@@ -584,6 +584,9 @@ void Render::saveZone(const QString projectFolder, QPoint zone)
clipFolder = QDir::homePath();
}
QString url = QFileDialog::getSaveFileName(qApp->activeWindow(), i18n("Save Zone"), clipFolder, i18n("MLT playlist (*.mlt)"));
if (url.isEmpty()) {
return;
}
Mlt::Consumer xmlConsumer(*m_qmlView->profile(), ("xml:" + url).toUtf8().constData());
xmlConsumer.set("terminate_on_pause", 1);
m_mltProducer->optimise();
......
Supports Markdown
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