Skip to content
GitLab
Menu
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
b43b737f
Commit
b43b737f
authored
Jun 28, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix overwrite clip with speed change
parent
1151ca57
Pipeline
#4701
passed with stage
in 14 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/speedjob.cpp
View file @
b43b737f
...
...
@@ -86,7 +86,7 @@ int SpeedJob::prepareJob(const std::shared_ptr<JobManager> &ptr, const std::vect
QString
mltfile
=
QFileInfo
(
binClip
->
url
()).
absoluteFilePath
()
+
QStringLiteral
(
".mlt"
);
if
(
QFile
::
exists
(
mltfile
))
{
KIO
::
RenameDialog
renameDialog
(
qApp
->
activeWindow
(),
QString
(),
/*i18n("File already exists"), */
QUrl
::
fromLocalFile
(
mltfile
),
QUrl
::
fromLocalFile
(
mltfile
),
KIO
::
RenameDialog_Option
::
RenameDialog_Overwrite
);
if
(
renameDialog
.
exec
()
=
=
QDialog
::
Accep
ted
)
{
if
(
renameDialog
.
exec
()
!
=
QDialog
::
Rejec
ted
)
{
QUrl
final
=
renameDialog
.
newDestUrl
();
if
(
final
.
isValid
())
{
mltfile
=
final
.
toLocalFile
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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