[pitivi: 6/27] Allow splitting even when there is no selection. Fixes bug #644313.



commit 52b6f6d3a16a6b7511c983f782303d1c82f94968
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Wed Mar 9 10:07:35 2011 -0500

    Allow splitting even when there is no selection. Fixes bug #644313.

 pitivi/ui/timeline.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index daeb055..1e03aba 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -709,7 +709,6 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         ungroup = False
         split = False
         keyframe = False
-        timeline_objects = {}
         if timeline.selection:
             delete = True
             if len(timeline.selection) > 1:
@@ -733,9 +732,11 @@ class Timeline(gtk.Table, Loggable, Zoomable):
                     start = obj.start
                     duration = obj.duration
 
-            split = True
             keyframe = True
 
+        if (len (timeline.timeline_objects) > 0):
+            split = True
+
         self.delete_action.set_sensitive(delete)
         self.link_action.set_sensitive(link)
         self.unlink_action.set_sensitive(unlink)



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