[pitivi] timeline: Do not forget to commit after drag and dropping clip to the timeline
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Do not forget to commit after drag and dropping clip to the timeline
- Date: Thu, 11 Jun 2015 09:20:40 +0000 (UTC)
commit 752471545d3999aa60f55cabc762f0e7e1d51d4a
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]