Fix crash on folder rename

parent 20d4498e
......@@ -288,7 +288,7 @@ void AbstractProjectItem::updateParent(std::shared_ptr<TreeItem> newParent)
m_lastParentId = std::static_pointer_cast<AbstractProjectItem>(newParent)->clipId();
}
TreeItem::updateParent(newParent);
if (reload) {
if (reload && itemType() != ProjectItemType::ProjectFolderType) {
pCore->jobManager()->startJob<ThumbJob>({clipId()}, {}, QString(), 150, -1, true);
pCore->jobManager()->startJob<AudioThumbJob>({clipId()}, {}, QString());
}
......
......@@ -102,7 +102,7 @@ enum class ClipType {
QText
};
enum ProjectItemType { ProjectClipType = QTreeWidgetItem::UserType, ProjectFoldeType, ProjectSubclipType };
enum ProjectItemType { ProjectClipType = 0, ProjectFolderType, ProjectSubclipType };
enum GraphicsRectItem { AVWidget = 70000, LabelWidget, TransitionWidget, GroupWidget };
......
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