DOn't attempt to load empty data as JSon

parent 6973df8e
Pipeline #11600 passed with stage
in 13 minutes and 35 seconds
......@@ -466,6 +466,9 @@ void ProjectItemModel::loadSubClips(const QString &id, const QString &clipData)
void ProjectItemModel::loadSubClips(const QString &id, const QString &dataMap, Fun &undo, Fun &redo)
{
if (dataMap.isEmpty()) {
return;
}
QWriteLocker locker(&m_lock);
std::shared_ptr<ProjectClip> clip = getClipByBinID(id);
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