[pitivi] elements: Add the clip to the timeline current group when an effect



commit 1b235f532d3790be2244661c281fe9939458e644
Author: Suhas Nayak <suhas2go gmail com>
Date:   Mon Jul 24 02:08:37 2017 +0530

    elements: Add the clip to the timeline current group when an effect
    
    is dragged onto it
    
    The timeline current group is for now considered to be the active group
    on the timeline. Previously, dragging an effect only selected the clip
    without adding it to the current group.
    
    This fixes T7791
    
    Differential Revision: https://phabricator.freedesktop.org/D1802

 pitivi/timeline/elements.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 0b2870d..a34dcea 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -917,6 +917,7 @@ class Clip(Gtk.EventBox, Zoomable, Loggable):
         if target.name() == EFFECT_TARGET_ENTRY.target:
             self.info("Adding effect %s", self.timeline.dropData)
             self.timeline.resetSelectionGroup()
+            self.timeline.current_group.add(self.ges_clip)
             self.timeline.selection.setSelection([self.ges_clip], SELECT)
             self.app.gui.switchContextTab(self.ges_clip)
 


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