Fix active effect not remembered and not correctly focused.

Fixes #854
parent a6e6e11f
......@@ -451,7 +451,11 @@ void AssetPanel::scrollTo(QRect rect)
{
// Ensure the scrollview widget adapted its height to the effectstackview height change
m_sc->widget()->adjustSize();
m_sc->ensureVisible(0, rect.y(), 0, rect.height());
if (rect.height() < m_sc->height()) {
m_sc->ensureVisible(0, rect.y() + rect.height(), 0, 0);
} else {
m_sc->ensureVisible(0, rect.y() + m_sc->height(), 0, 0);
}
}
void AssetPanel::slotCheckWheelEventFilter()
......
......@@ -478,9 +478,13 @@ void ClipModel::refreshProducerFromBin(int trackId, PlaylistState::ClipState sta
m_producer->parent().set("warp_pitch", 0);
}
// replant effect stack in updated service
int activeEffect = m_effectStack->getActiveEffect();
m_effectStack->resetService(m_producer);
m_producer->set("kdenlive:id", binClip->clipId().toUtf8().constData());
m_producer->set("_kdenlive_cid", m_id);
if (activeEffect > 0) {
m_producer->set("kdenlive:activeeffect", activeEffect);
}
m_endlessResize = !binClip->hasLimitedDuration();
}
......
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