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

Fix editing title/color clips does not invalidate timeline preview.

BUG: 437427
parent 43f4e060
......@@ -1352,6 +1352,7 @@ void ProjectClip::setProperties(const QMap<QString, QString> &properties, bool r
}
if (!reload && (properties.contains(QStringLiteral("xmldata")) || !passProperties.isEmpty())) {
reload = true;
updateRoles << TimelineModel::ResourceRole;
}
if (refreshAnalysis) {
emit refreshAnalysisPanel();
......
......@@ -5444,6 +5444,10 @@ void TimelineModel::requestClipUpdate(int clipId, const QVector<int> &roles)
if (roles.contains(TimelineModel::ReloadAudioThumbRole)) {
m_allClips[clipId]->forceThumbReload = !m_allClips[clipId]->forceThumbReload;
}
if (roles.contains(TimelineModel::ResourceRole)) {
int in = getClipPosition(clipId);
emit invalidateZone(in, in + getClipPlaytime(clipId));
}
notifyChange(modelIndex, modelIndex, roles);
}
......
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