Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ui/timeline: disable updates while adding clips to the timeline.

  • Loading branch information...
commit 255a1e1269c23b540052bf3fc2bb46f7313b708d 1 parent 0a8b8a3
@alessandrod alessandrod authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  pitivi/ui/timeline.py
View
2  pitivi/ui/timeline.py
@@ -423,12 +423,14 @@ def _dragLeaveCb(self, unused_layout, unused_context, unused_tstamp):
def _dragDropCb(self, widget, context, x, y, timestamp):
self.app.action_log.begin("add clip")
+ self.timeline.disableUpdates()
self._add_temp_source()
focus = self._temp_objects[0]
self._move_context = MoveContext(self.timeline,
focus, set(self._temp_objects[1:]))
self._move_temp_source(self.hadj.props.value + x, y)
self._move_context.finish()
+ self.timeline.enableUpdates()
self.app.action_log.commit()
context.drop_finish(True, timestamp)
self._factories = None

0 comments on commit 255a1e1

Please sign in to comment.
Something went wrong with that request. Please try again.