Fix 'remove curve from playlist' implementation.
[hooke.git] / hooke / plugin / playlist.py
index f9d7f31ffa68b75db4ee4af9ec7943ff90d9ad4d..b5a2f2a8bb2f6ed048837a6ffdf0d9e0af981b72 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):