Commit 77dca909 authored by Nicolas Carion's avatar Nicolas Carion
Browse files

fix undo when there is a selection

parent 749f6989
Pipeline #1702 passed with stage
in 14 minutes and 33 seconds
......@@ -1901,6 +1901,9 @@ Fun TimelineModel::deregisterClip_lambda(int clipId)
{
return [this, clipId]() {
// qDebug() << " // /REQUEST TL CLP DELETION: " << clipId << "\n--------\nCLIPS COUNT: " << m_allClips.size();
if (getCurrentSelection().count(clipId) > 0) {
requestClearSelection();
}
clearAssetView(clipId);
Q_ASSERT(m_allClips.count(clipId) > 0);
Q_ASSERT(getClipTrackId(clipId) == -1); // clip must be deleted from its track at this point
......
Markdown is supported
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