Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Elias Steurer
ScreenPlay
Commits
1a73f989
Commit
1a73f989
authored
Jan 07, 2021
by
Elias Steurer
🇩🇪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong filename when using a filename with a dot
Remove old labs fileselector
parent
d1d933b6
Pipeline
#238738601
passed with stages
in 10 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
ScreenPlay/qml/Common/FileSelector.qml
ScreenPlay/qml/Common/FileSelector.qml
+2
-4
ScreenPlay/src/create.cpp
ScreenPlay/src/create.cpp
+1
-1
No files found.
ScreenPlay/qml/Common/FileSelector.qml
View file @
1a73f989
import
QtQuick
2.12
import
QtQuick
.
Controls
2.12
import
QtQuick
.
Controls
.
Material
2.12
import
Qt
.
labs
.
platform
1.
1
import
Qt
Quick
.
Dialogs
1.
2
import
ScreenPlay
1.0
...
...
@@ -130,11 +130,9 @@ Item {
FileDialog
{
id
:
fileDialog
title
:
qsTr
(
"
Please choose a file
"
)
fileMode
:
FileDialog
.
OpenFile
onAccepted
:
{
root
.
file
=
fileDialog
.
file
txtName
.
text
=
fileDialog
.
file
.
toString
().
replace
(
/^.*
[\\\/]
/
,
''
)
txtName
.
text
=
fileDialog
.
file
.
toString
()
}
}
}
...
...
ScreenPlay/src/create.cpp
View file @
1a73f989
...
...
@@ -140,7 +140,7 @@ void Create::saveWallpaper(QString title, QString description, QString filePath,
obj
.
insert
(
"title"
,
title
);
obj
.
insert
(
"youtube"
,
youtube
);
obj
.
insert
(
"videoCodec"
,
codec
==
Create
::
VideoCodec
::
VP8
?
"vp8"
:
"vp9"
);
obj
.
insert
(
"file"
,
filePathFile
.
bas
eName
()
+
".webm"
);
obj
.
insert
(
"file"
,
filePathFile
.
fil
eName
());
obj
.
insert
(
"previewGIF"
,
"preview.gif"
);
obj
.
insert
(
"previewWEBM"
,
"preview.webm"
);
obj
.
insert
(
"preview"
,
previewImageFile
.
exists
()
?
previewImageFile
.
fileName
()
:
"preview.jpg"
);
...
...
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