[pitivi] timeline: Do not forget to commit the timeline after removing clips
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Do not forget to commit the timeline after removing clips
- Date: Sat, 15 Nov 2014 10:34:32 +0000 (UTC)
commit ff0737fd71d9182a57bdcfcbc35235a6a609b11b
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Nov 10 18:38:45 2014 +0100
timeline: Do not forget to commit the timeline after removing clips
This is now mandatory for the changes to be taken into account
pitivi/timeline/timeline.py | 3 ++-
pitivi/undo/timeline.py | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index edd56a4..cf71a7f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -747,6 +747,7 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
for tlobj in layer.get_clips():
if asset_id == tlobj.get_id():
layer.remove_clip(tlobj)
+ self.bTimeline.commit()
def setProjectManager(self, projectmanager):
if self._projectmanager is not None:
@@ -1167,11 +1168,11 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
if self.bTimeline:
self.app.action_log.begin("delete clip")
- # FIXME GES port: Handle unlocked TrackElement-s
for clip in self.timeline.selection:
layer = clip.get_layer()
layer.remove_clip(clip)
+ self.bTimeline.commit()
self.app.action_log.commit()
def _ungroupSelected(self, unused_action):
diff --git a/pitivi/undo/timeline.py b/pitivi/undo/timeline.py
index c49eea6..dfc14cc 100644
--- a/pitivi/undo/timeline.py
+++ b/pitivi/undo/timeline.py
@@ -311,6 +311,7 @@ class ClipAdded(UndoableAction):
def undo(self):
self.layer.remove_clip(self.clip)
+ self.layer.get_timeline().commit()
self._undone()
def serializeLastAction(self):
@@ -338,6 +339,7 @@ class ClipRemoved(UndoableAction):
def do(self):
self.layer.remove_clip(self.clip)
+ self.layer.get_timeline().commit()
self._done()
def undo(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]