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

Fix undo fade deletion when removed by dragging outside clip in timeline

parent bb4b151a
......@@ -1750,6 +1750,10 @@ void TimelineController::adjustFade(int cid, const QString &effectId, int durati
}
if (duration <= 0) {
// remove fade
if (initialDuration > 0) {
// Restore original fade duration
m_model->adjustEffectLength(cid, effectId, initialDuration, -1);
}
m_model->removeFade(cid, effectId == QLatin1String("fadein"));
} else {
m_model->adjustEffectLength(cid, effectId, duration, initialDuration);
......
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