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
fcf8ee8b
Commit
fcf8ee8b
authored
Aug 02, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix timeremap requesting invalid clip index (producer is not inserted in a track at that point)
parent
c3f44abd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/clipmodel.cpp
View file @
fcf8ee8b
...
...
@@ -745,10 +745,7 @@ void ClipModel::refreshProducerFromBin(int trackId, PlaylistState::ClipState sta
m_producer
->
set_in_and_out
(
in
,
out
);
if
(
m_hasTimeRemap
!=
isChain
())
{
m_hasTimeRemap
=
!
m_hasTimeRemap
;
if
(
auto
ptr
=
m_parent
.
lock
())
{
QModelIndex
ix
=
ptr
->
makeClipIndexFromID
(
m_id
);
emit
ptr
->
dataChanged
(
ix
,
ix
,
{
TimelineModel
::
TimeRemapRole
});
}
// producer is not on a track, no data refresh needed
}
if
(
m_hasTimeRemap
)
{
// Restor timeremap parameters
...
...
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