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
dbc97f19
Commit
dbc97f19
authored
Apr 01, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix pasting video only effect on AV clip broken
parent
776d00b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
dbc97f19
...
...
@@ -2442,15 +2442,14 @@ void TimelineController::pasteEffects(int targetId)
effects
.
appendChild
(
subs
.
at
(
0
));
}
}
bool
result
=
true
;
int
insertedEffects
=
0
;
for
(
int
target
:
targetIds
)
{
std
::
shared_ptr
<
EffectStackModel
>
destStack
=
m_model
->
getClipEffectStackModel
(
target
);
result
=
result
&&
destStack
->
fromXml
(
effects
,
undo
,
redo
);
if
(
!
result
)
{
break
;
if
(
destStack
->
fromXml
(
effects
,
undo
,
redo
))
{
insertedEffects
++
;
}
}
if
(
result
)
{
if
(
insertedEffects
>
0
)
{
pCore
->
pushUndo
(
undo
,
redo
,
i18n
(
"Paste effects"
));
}
else
{
pCore
->
displayMessage
(
i18n
(
"Cannot paste effect on selected clip"
),
InformationMessage
,
500
);
...
...
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