[pitivi] timelime: Guarantee clip name is reusable when readding a clip to timeline
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timelime: Guarantee clip name is reusable when readding a clip to timeline
- Date: Sat, 13 Dec 2014 19:10:35 +0000 (UTC)
commit 8d235a15347875e24888b39c5d352813b65622d1
Author: Thibault Saunier <tsaunier gnome org>
Date: Sun Nov 16 20:05:50 2014 +0100
timelime: Guarantee clip name is reusable when readding a clip to timeline
Otherwize scenarios will be unusable
pitivi/undo/timeline.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/undo/timeline.py b/pitivi/undo/timeline.py
index 722affb..410bee6 100644
--- a/pitivi/undo/timeline.py
+++ b/pitivi/undo/timeline.py
@@ -306,6 +306,7 @@ class ClipAdded(UndoableAction):
self.clip = clip
def do(self):
+ self.clip.set_name(None)
self.layer.add_clip(self.clip)
self.layer.get_timeline().commit()
self._done()
@@ -344,6 +345,7 @@ class ClipRemoved(UndoableAction):
self._done()
def undo(self):
+ self.clip.set_name(None)
self.layer.add_clip(self.clip)
self.layer.get_timeline().commit()
self._undone()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]