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
c8027071
Commit
c8027071
authored
Nov 28, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix cannot save custom render profile
Fixes
#1588
parent
d3b2b5dd
Pipeline
#276064
passed with stage
in 4 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/renderpresets/renderpresetrepository.cpp
View file @
c8027071
...
...
@@ -309,7 +309,7 @@ const QString RenderPresetRepository::savePreset(RenderPresetModel *preset, bool
dir
.
mkpath
(
QStringLiteral
(
"."
));
}
QString
fileName
(
dir
.
absoluteFilePath
(
QStringLiteral
(
"customprofiles.xml"
)));
if
(
!
Xml
::
docContentFromFile
(
doc
,
fileName
,
false
))
{
if
(
dir
.
exists
(
QStringLiteral
(
"customprofiles.xml"
))
&&
!
Xml
::
docContentFromFile
(
doc
,
fileName
,
false
))
{
KMessageBox
::
error
(
nullptr
,
i18n
(
"Cannot read file %1"
,
fileName
));
return
{};
}
...
...
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