]> git.sesse.net Git - kdenlive/commitdiff
Fix group loading:
authorTill Theato <root@ttill.de>
Fri, 18 Feb 2011 21:59:07 +0000 (21:59 +0000)
committerTill Theato <root@ttill.de>
Fri, 18 Feb 2011 21:59:07 +0000 (21:59 +0000)
http://kdenlive.org/mantis/view.php?id=2027
(caused by change in Qt?)

svn path=/trunk/kdenlive/; revision=5425

src/customtrackview.cpp

index fa1076947c584798158245a2241724006430e1bd..ac35ec30e2c694dcd28e85c50c74baa4e081795e 100644 (file)
@@ -5823,8 +5823,7 @@ void CustomTrackView::loadGroups(const QDomNodeList groups)
         QDomNodeList children = groups.at(i).childNodes();
         scene()->clearSelection();
         for (int nodeindex = 0; nodeindex < children.count(); nodeindex++) {
-            QDomNode n = children.item(nodeindex);
-            QDomElement elem = n.toElement();
+            QDomElement elem = children.item(nodeindex).toElement();
             int pos = elem.attribute("position").toInt();
             int track = elem.attribute("track").toInt();
             if (elem.tagName() == "clipitem") {
@@ -6162,6 +6161,7 @@ void CustomTrackView::updateProjectFps()
             m_document->clipManager()->removeGroup(grp);
             m_scene->addItem(grp);
             scene()->destroyItemGroup(grp);
+            scene()->clearSelection();
             for (int j = 0; j < children.count(); j++) {
                 if (children.at(j)->type() == AVWIDGET || children.at(j)->type() == TRANSITIONWIDGET) {
                     //children.at(j)->setParentItem(0);