]> git.sesse.net Git - kdenlive/commitdiff
Fix crash when moving a folder and a clip with a subclip inside project tree:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 2 Jan 2012 19:17:43 +0000 (20:17 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 2 Jan 2012 19:17:43 +0000 (20:17 +0100)
http://kdenlive.org/mantis/view.php?id=2458

src/projectlistview.cpp

index c68bccf219e4d2737560b49d967c674558223156..0ad67645bae895cdd2190563adec9441cd2576a2 100644 (file)
@@ -276,6 +276,7 @@ void ProjectListView::dropEvent(QDropEvent *event)
             const QList <QTreeWidgetItem *> list = selectedItems();
             ProjectItem *clone;
             foreach(QTreeWidgetItem *it, list) {
+                if (it->type() != PROJECTCLIPTYPE) continue;
                 QTreeWidgetItem *parent = it->parent();
                 if (parent/* && ((ProjectItem *) it)->clipId() < 10000*/)  {
                     kDebug() << "++ item parent: " << parent->text(1);