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

Fix possible crash on undo/redo transcoding.

Related to #1307
parent ca19f563
Pipeline #125250 passed with stage
in 9 minutes and 27 seconds
......@@ -4156,6 +4156,10 @@ void Bin::slotAddClipExtraData(const QString &id, const QString &key, const QStr
void Bin::slotUpdateClipProperties(const QString &id, const QMap<QString, QString> &properties, bool refreshPropertiesPanel)
std::shared_ptr<AbstractProjectItem> item = m_itemModel->getItemByBinId(id);
if (!item) {
// Clip might have been deleted
if (item->itemType() == AbstractProjectItem::ClipItem) {
std::shared_ptr<ProjectClip> clip = std::static_pointer_cast<ProjectClip>(item);
if (clip) {
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