[pitivi] effects: Do make a copy ofTrackEffect-s when unlinking



commit 8fb3dcdd1c235ea034fc22377411f56f443e6feb
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Mon May 30 16:23:58 2011 -0400

    effects: Do make a copy ofTrackEffect-s when unlinking
    
    We used to copy the trackeffects when unlinking which resulted in a
    TrackEffect not controlled by any TimelineObject-s in the timeline.

 pitivi/timeline/timeline.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 59af0a0..fe1829c 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1919,10 +1919,10 @@ class Timeline(Signallable, Loggable):
             n_tl_objects = []
 
             for track_object in list(timeline_object.track_objects):
-                new_track_object = track_object.copy()
-                if isinstance(new_track_object, TrackEffect):
-                    n_track_effects.append(new_track_object)
+                if isinstance(track_object, TrackEffect):
+                    n_track_effects.append(track_object)
                 else:
+                    new_track_object = track_object.copy()
                     new_timeline_object = TimelineObject(new_track_object.factory)
                     new_timeline_object.addTrackObject(new_track_object)
                     n_tl_objects.append(new_timeline_object)



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