[pitivi] timeline: commit for each container ungrouping.



commit 5f78baeb3d680060df7a092c852a1f1d21ed0f7a
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Wed Aug 7 17:08:38 2013 +0200

    timeline: commit for each container ungrouping.

 pitivi/timeline/timeline.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 44c1c58..0ffbce2 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1101,11 +1101,15 @@ class Timeline(Gtk.VBox, Zoomable, Loggable):
                 if toplevel == self.timeline.current_group:
                     for child in toplevel.get_children(False):
                         containers.add(child)
+                    toplevel.ungroup(False)
                 else:
                     containers.add(toplevel)
 
             for container in containers:
                 GES.Container.ungroup(container, False)
+                self.timeline.bTimeline.commit()
+
+            self.timeline.current_group = GES.Group()
 
             self.app.action_log.commit()
             self.bTimeline.commit()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]