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
84a00836
Commit
84a00836
authored
Jul 24, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash on grouped mix deletion
parent
f65254d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
84a00836
...
...
@@ -2895,9 +2895,12 @@ int TimelineModel::requestItemSpeedChange(int itemId, int size, bool right, int
bool
TimelineModel
::
removeMixWithUndo
(
int
cid
,
Fun
&
undo
,
Fun
&
redo
)
{
int
tid
=
getItemTrackId
(
cid
);
MixInfo
mixData
=
getTrackById_const
(
tid
)
->
getMixInfo
(
cid
).
first
;
bool
res
=
getTrackById
(
tid
)
->
requestRemoveMix
({
mixData
.
firstClipId
,
mixData
.
secondClipId
},
undo
,
redo
);
return
res
;
if
(
isTrack
(
tid
))
{
MixInfo
mixData
=
getTrackById_const
(
tid
)
->
getMixInfo
(
cid
).
first
;
bool
res
=
getTrackById
(
tid
)
->
requestRemoveMix
({
mixData
.
firstClipId
,
mixData
.
secondClipId
},
undo
,
redo
);
return
res
;
}
return
true
;
}
bool
TimelineModel
::
removeMix
(
int
cid
)
...
...
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