Commit fcf8ee8b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix timeremap requesting invalid clip index (producer is not inserted in a track at that point)

parent c3f44abd
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment