[pitivi/1.0] timeline: Do not create keyframe curve when selecting several clips



commit 92a6d0a7f54b63c46f220e81725ee959bb450367
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Nov 7 17:30:54 2017 -0300

    timeline: Do not create keyframe curve when selecting several clips
    
    It might take a long time and we will still end up not showing them
    anyway.
    
    Reviewed-by: Alex Băluț <<alexandru balut gmail com>>
    Differential Revision: https://phabricator.freedesktop.org/D1879

 pitivi/timeline/elements.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index be108e1..e5a3ee5 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -572,7 +572,8 @@ class TimelineElement(Gtk.Layout, Zoomable, Loggable):
 
     # Callbacks
     def __selectedChangedCb(self, unused_selected, selected):
-        if not self.keyframe_curve and self.__controlledProperty:
+        if not self.keyframe_curve and self.__controlledProperty and \
+                selected and len(self.timeline.selection) == 1:
             self.__create_keyframe_curve()
 
         if self.keyframe_curve:


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