[pitivi/gtktimeline] timeline: Do not forget to commit after drag and dropping clip to the timeline



commit c449a10a8ce2734b4a91abb5ccf0f93e1e013aba
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri May 22 16:42:08 2015 +0200

    timeline: Do not forget to commit after drag and dropping clip to the timeline
    
    Fixes http://phabricator.freedesktop.org/T77

 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 7e335a8..a6cccd5 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -687,6 +687,7 @@ class Timeline(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
                 layer, on_sep = self.__getLayerAt(y)
                 if not placement:
                     placement = self.pixelToNs(x)
+                placement = max(0, placement)
 
                 self.debug("Creating %s at %s" % (uri, Gst.TIME_ARGS(placement)))
 
@@ -700,6 +701,7 @@ class Timeline(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
                 self.current_group.add(bClip.get_toplevel_parent())
                 self.selection.setSelection([], timelineUtils.SELECT_ADD)
                 self.app.action_log.commit()
+                self._project.pipeline.commit_timeline()
 
                 if not self.draggingElement:
                     self.draggingElement = bClip.ui


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