def onStop(self):
        from txplaya.playlistregistry import playlistRegistry

        paths = [track._path for track in self.playlist.iterTrack()]
        playlistRegistry.savePlaylist('__current__', paths)