Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
989dacdf
Commit
989dacdf
authored
Dec 05, 2016
by
Laurent Montel
Browse files
Don't execute code if we cancel savefile dialogbox
parent
d7e2372d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/renderer.cpp
View file @
989dacdf
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment