Fix 'remove curve from playlist' implementation.
authorW. Trevor King <wking@drexel.edu>
Thu, 10 Nov 2011 17:01:57 +0000 (12:01 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 10 Nov 2011 17:01:57 +0000 (12:01 -0500)
hooke/plugin/playlist.py

index f9d7f31..b5a2f2a 100644 (file)
@@ -345,8 +345,9 @@ Index of target curve.
             help=self.__doc__, plugin=plugin)
 
     def _run(self, hooke, inqueue, outqueue, params):
-        self._playlist(hooke, params).pop(params['index'])
-        self._playlist(hooke, params).jump(params.index())
+        playlist = self._playlist(hooke, params)
+        playlist.pop(params['index'])
+        playlist.jump(playlist.index())
 
 
 class ApplyCommand (PlaylistCommand):