Fix warning

parent 2ec6e3dd
Pipeline #12996 passed with stage
in 17 minutes and 58 seconds
......@@ -217,6 +217,9 @@ void ProjectSubClip::setProperties(const QMap<QString, QString> &properties)
propertyFound = true;
m_rating = properties.value(QStringLiteral("kdenlive:rating")).toUInt();
}
if (!propertyFound) {
return;
}
if (auto ptr = m_model.lock()) {
std::shared_ptr<AbstractProjectItem> parentItem = std::static_pointer_cast<ProjectItemModel>(ptr)->getItemByBinId(m_parentClipId);
if (parentItem && parentItem->itemType() == AbstractProjectItem::ClipItem) {
......
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