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

Fix crash undoing timeremap change after unselecting the clip

parent 42bea5df
......@@ -1778,6 +1778,7 @@ void TimeRemap::selectedClip(int cid)
connect(pCore->getMonitor(Kdenlive::ClipMonitor), &Monitor::seekRemap, m_view, &RemapView::slotSetPosition, Qt::UniqueConnection);
std::shared_ptr<TimelineItemModel> model = pCore->window()->getCurrentTimeline()->model();
disconnect(model.get(), &TimelineItemModel::dataChanged, this, &TimeRemap::checkClipUpdate);
m_cid = cid;
if (cid == -1) {
m_binId.clear();
m_view->setDuration(nullptr, -1);
......@@ -1802,7 +1803,6 @@ void TimeRemap::selectedClip(int cid)
m_lastLength = pCore->getItemDuration({ObjectType::TimelineClip, cid});
m_view->m_startPos = pCore->getItemPosition({ObjectType::TimelineClip, cid});
model->requestClipTimeRemap(cid);
m_cid = cid;
connect(model.get(), &TimelineItemModel::dataChanged, this, &TimeRemap::checkClipUpdate);
m_view->m_maxLength = prod->get_length();
m_in->setRange(0, m_view->m_maxLength - prod->get_in());
......
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