Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
102e588c
Commit
102e588c
authored
Nov 10, 2017
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix extension in transcode file dialog
parent
6b63039e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/project/jobs/cutclipjob.cpp
src/project/jobs/cutclipjob.cpp
+9
-1
No files found.
src/project/jobs/cutclipjob.cpp
View file @
102e588c
...
...
@@ -35,6 +35,7 @@
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <kio_version.h>
CutClipJob
::
CutClipJob
(
ClipType
cType
,
const
QString
&
id
,
const
QStringList
&
parameters
)
:
AbstractClipJob
(
CUTJOB
,
cType
,
id
)
{
...
...
@@ -395,7 +396,14 @@ QHash<ProjectClip *, AbstractClipJob *> CutClipJob::prepareTranscodeJob(double f
d
->
setWindowTitle
(
i18n
(
"Transcoding"
));
ui
.
extra_params
->
setMaximumHeight
(
QFontMetrics
(
qApp
->
font
()).
lineSpacing
()
*
5
);
if
(
clips
.
count
()
==
1
)
{
ui
.
file_url
->
setUrl
(
QUrl
(
destinations
.
constFirst
()));
ui
.
file_url
->
setMode
(
KFile
::
File
);
#if KIO_VERSION >= QT_VERSION_CHECK(5,33,0)
ui
.
file_url
->
setAcceptMode
(
QFileDialog
::
AcceptSave
);
#elif !defined(KIOWIDGETS_DEPRECATED)
ui
.
file_url
->
fileDialog
()
->
setAcceptMode
(
QFileDialog
::
AcceptSave
);
#endif
ui
.
file_url
->
setUrl
(
QUrl
::
fromLocalFile
(
destinations
.
constFirst
()));
ui
.
file_url
->
setFilter
(
"*."
+
destinations
.
constFirst
().
section
(
QLatin1Char
(
'.'
),
-
1
));
}
else
{
ui
.
destination_label
->
setVisible
(
false
);
ui
.
file_url
->
setVisible
(
false
);
...
...
Write
Preview
Markdown
is supported
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