Commit 6d658937 authored by Nicolas Carion's avatar Nicolas Carion

make sure thumbs are loaded on bin loading

parent f5320389
......@@ -549,6 +549,10 @@ bool ProjectItemModel::requestAddBinClip(QString &id, std::shared_ptr<Mlt::Produ
Q_ASSERT(!id.isEmpty() && isIdFree(id));
std::shared_ptr<ProjectClip> new_clip = ProjectClip::construct(id, m_blankThumb, std::static_pointer_cast<ProjectItemModel>(shared_from_this()), producer);
bool res = addItem(new_clip, parentId, undo, redo);
if (res) {
pCore->jobManager()->startJob<ThumbJob>({id}, {}, QString(), 150, -1, true);
pCore->jobManager()->startJob<AudioThumbJob>({id}, {}, QString());
return res;
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