X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.cpp;h=e4a2641b2323fc5484f33530f74a21b5a8cefa52;hb=c71d02442c223dcf171868ee0494b9c8e1253418;hp=f5b8a8884c34d53092c8c7d20420766b3dec53c1;hpb=51e9f7bb72508ed1c8eff3e31c6cd98ba9118fe8;p=kdenlive diff --git a/src/projectlistview.cpp b/src/projectlistview.cpp index f5b8a888..e4a2641b 100644 --- a/src/projectlistview.cpp +++ b/src/projectlistview.cpp @@ -266,7 +266,7 @@ void ProjectListView::dropEvent(QDropEvent *event) if (it->type() == PROJECTCLIPTYPE) { if (it->parent()) clone = (ProjectItem*) it->parent()->takeChild(it->parent()->indexOfChild(it)); else clone = (ProjectItem*) takeTopLevelItem(indexOfTopLevelItem(it)); - if (clone) { + if (clone && item) { item->addChild(clone); QMap props; props.insert("groupname", item->groupName());