[pitivi] ui/timeline.py: Adding an effect to the timeline does nothing
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui/timeline.py: Adding an effect to the timeline does nothing
- Date: Wed, 22 Sep 2010 13:47:13 +0000 (UTC)
commit 9aa0287aaf4fc8876722ea56c0563e6d754788b4
Author: Thibault Saunier <tsaunier gnome org>
Date: Wed Sep 1 15:20:21 2010 +0200
ui/timeline.py: Adding an effect to the timeline does nothing
pitivi/ui/timeline.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 3980d01..8b37854 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -464,7 +464,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
return True
elif context.targets in DND_EFFECT_LIST:
-
+ if not self.timeline.timeline_objects:
+ return False
factory = self._factories[0]
timeline_objs = self._getTimelineObjectUnderMouse(x, y, factory.getInputStreams()[0])
if timeline_objs:
@@ -502,6 +503,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
uris = selection.data.split("\n")
self._factories = [self.project.sources.getUri(uri) for uri in uris]
else:
+ if not self.timeline.timeline_objects:
+ return False
self._factories = [self.app.effects.getFactoryFromName(selection.data)]
context.drag_status(gtk.gdk.ACTION_COPY, timestamp)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]