Fix bug where playlist selection is changed when playlist is updated after previously being modified by a different user

This commit is contained in:
Et0h 2016-07-17 12:00:07 +01:00
parent 4012bfec8f
commit 2128432675

View File

@ -1396,6 +1396,7 @@ class SyncplayPlaylist():
if not self._client.sharedPlaylistIsEnabled():
self._playlistIndex = index
if username is not None and self._client.userlist.currentUser.file and filename == self._client.userlist.currentUser.file['name']:
self._playlistIndex = index
return
except IndexError:
pass