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
d46121c4
Commit
d46121c4
authored
Jan 14, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix save path for custom render profiles on Windows following commit 90b1e4
Should fix
#1303
parent
11ed0f60
Pipeline
#123235
passed with stage
in 11 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/renderwidget.cpp
View file @
d46121c4
...
...
@@ -668,7 +668,7 @@ void RenderWidget::slotSaveProfile()
bool
RenderWidget
::
saveProfile
(
QDomElement
newprofile
)
{
QDir
dir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppDataLocation
)
+
QStringLiteral
(
"/export/"
));
QDir
dir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
App
Local
DataLocation
)
+
QStringLiteral
(
"/export/"
));
if
(
!
dir
.
exists
())
{
dir
.
mkpath
(
QStringLiteral
(
"."
));
}
...
...
@@ -2096,8 +2096,8 @@ void RenderWidget::parseProfiles(const QString &selectedProfile)
for
(
const
QString
&
filename
:
qAsConst
(
fileList
))
{
parseFile
(
directory
.
absoluteFilePath
(
filename
),
true
);
}
if
(
QFile
::
exists
(
exportFolder
+
QStringLiteral
(
"customprofiles.xml"
)))
{
parseFile
(
exportFolder
+
QStringLiteral
(
"customprofiles.xml"
),
true
);
if
(
directory
.
exists
(
QStringLiteral
(
"customprofiles.xml"
)))
{
parseFile
(
directory
.
absoluteFilePath
(
QStringLiteral
(
"customprofiles.xml"
)
)
,
true
);
}
focusFirstVisibleItem
(
selectedProfile
);
...
...
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