[pitivi/ges: 72/287] timeline: Do not readd same file when trying to add a new one
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 72/287] timeline: Do not readd same file when trying to add a new one
- Date: Thu, 15 Mar 2012 16:31:53 +0000 (UTC)
commit e4c14bf0c94f7ce0e43acc01ffca23ff1e56d361
Author: Thibault Saunier <thibault saunier collabora com>
Date: Sun Nov 27 18:10:36 2011 -0300
timeline: Do not readd same file when trying to add a new one
pitivi/ui/timeline.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 0ab2b0d..ddd5e88 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -402,7 +402,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
def _dragMotionCb(self, unused, context, x, y, timestamp):
- if self._factories is None:
+ if not self._factories:
if context.targets in DND_EFFECT_LIST:
atom = gtk.gdk.atom_intern(dnd.EFFECT_TUPLE[0])
else:
@@ -435,6 +435,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
self._move_context.finish()
self.app.action_log.commit()
context.drop_finish(True, timestamp)
+ self._factories = []
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]