Skip to content

Commit

Permalink
ui/timeline.py: Adding an effect to the timeline does nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaunier committed Sep 2, 2010
1 parent a5a8103 commit f1e5b3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pitivi/ui/timeline.py
Expand Up @@ -440,7 +440,8 @@ def _dragDropCb(self, widget, context, x, y, timestamp):
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:
Expand Down Expand Up @@ -478,6 +479,8 @@ def _dragDataReceivedCb(self, unused_layout, context, x, y,
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)
Expand Down

0 comments on commit f1e5b3c

Please sign in to comment.