]> git.sesse.net Git - kdenlive/commitdiff
Fix select all feature introduced in previous commit
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 9 Jan 2012 18:29:50 +0000 (19:29 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 9 Jan 2012 18:29:50 +0000 (19:29 +0100)
src/customtrackview.cpp

index 08b98cc26a3869c5c251e5f4f938f910143556ce..4624e28f034e6c3d3db9e1caff33fc91cc7ed5ca 100644 (file)
@@ -6349,10 +6349,12 @@ void CustomTrackView::slotSelectClipsInTrack()
     QList<QGraphicsItem *> selection = m_scene->items(rect);
     m_scene->clearSelection();
     for (int i = 0; i < selection.count(); i++) {
-        if (selection.at(i)->type() == AVWIDGET || selection.at(i)->type() == TRANSITIONWIDGET) {
+        if (selection.at(i)->type() == AVWIDGET || selection.at(i)->type() == TRANSITIONWIDGET || selection.at(i)->type() == GROUPWIDGET) {
             selection.at(i)->setSelected(true);
         }
     }    
+    resetSelectionGroup();
+    groupSelectedItems();
 }
 
 void CustomTrackView::slotSelectAllClips()
@@ -6360,10 +6362,12 @@ void CustomTrackView::slotSelectAllClips()
     QList<QGraphicsItem *> selection = m_scene->items();
     m_scene->clearSelection();
     for (int i = 0; i < selection.count(); i++) {
-        if (selection.at(i)->type() == AVWIDGET || selection.at(i)->type() == TRANSITIONWIDGET) {
+        if (selection.at(i)->type() == AVWIDGET || selection.at(i)->type() == TRANSITIONWIDGET  || selection.at(i)->type() == GROUPWIDGET) {
             selection.at(i)->setSelected(true);
         }
-    }  
+    }
+    resetSelectionGroup();
+    groupSelectedItems();
 }
 
 void CustomTrackView::selectClip(bool add, bool group, int track, int pos)