[pitivi] timeline: Empty the selection after deleting clips



commit 5a0dcb07d0ef653d8795120f3bd74c9ff453a43c
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Thu Oct 22 16:21:35 2015 +0200

    timeline: Empty the selection after deleting clips
    
    There is no point in keeping orphaned clips in the selection.
    
    Differential Revision: https://phabricator.freedesktop.org/D439

 pitivi/timeline/timeline.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 82f97e1..670e98b 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1524,6 +1524,8 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
             self._project.pipeline.commit_timeline()
             self.app.action_log.commit()
 
+            self.timeline.selection.setSelection([], SELECT)
+
     def _ungroupSelected(self, unused_action):
         if self.bTimeline:
             self.app.action_log.begin("ungroup")


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