Correctly update timeline proxy status.

Related to !99
parent ad750cf7
Pipeline #18449 passed with stage
in 9 minutes and 59 seconds
......@@ -511,6 +511,7 @@ bool ProjectClip::setProducer(std::shared_ptr<Mlt::Producer> producer, bool repl
});
}
replaceInTimeline();
updateTimelineClips({TimelineModel::IsProxyRole});
return true;
}
......@@ -1056,7 +1057,7 @@ void ProjectClip::setProperties(const QMap<QString, QString> &properties, bool r
}
// update timeline clips
if (!reload) {
updateTimelineClips(QVector<int>() << TimelineModel::NameRole);
updateTimelineClips({TimelineModel::NameRole});
}
}
if (refreshPanel) {
......
......@@ -271,7 +271,7 @@ QVariant TimelineItemModel::data(const QModelIndex &index, int role) const
return result;
}
case IsProxyRole: {
QString proxy = clip->getProperty("kdenlive:proxy");
const QString proxy = clip->getProperty("kdenlive:proxy");
return proxy.size() > 2;
}
case FakeTrackIdRole:
......
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