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
89cdeb16
Commit
89cdeb16
authored
May 06, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix custom effect type sometimes incorrect.
Fixes
#336
parent
c6f537be
Pipeline
#173814
passed with stage
in 6 minutes and 51 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/effects/effectstack/view/collapsibleeffectview.cpp
View file @
89cdeb16
...
...
@@ -536,8 +536,7 @@ void CollapsibleEffectView::slotSaveEffect()
namedId
.
prepend
(
QStringLiteral
(
"fadeout_"
));
}
effect
.
setAttribute
(
QStringLiteral
(
"id"
),
namedId
);
QString
masterType
=
effect
.
attribute
(
QLatin1String
(
"type"
));
effect
.
setAttribute
(
QStringLiteral
(
"type"
),
(
masterType
==
QLatin1String
(
"audio"
)
||
masterType
==
QLatin1String
(
"customAudio"
))
?
QStringLiteral
(
"customAudio"
)
:
QStringLiteral
(
"customVideo"
));
effect
.
setAttribute
(
QStringLiteral
(
"type"
),
m_model
->
isAudio
()
?
QStringLiteral
(
"customAudio"
)
:
QStringLiteral
(
"customVideo"
));
QDomElement
effectname
=
effect
.
firstChildElement
(
QStringLiteral
(
"name"
));
effect
.
removeChild
(
effectname
);
...
...
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