Fixed another crash that occurred because of another player.current_playlist.has_tracks()-check when the current playlist was None.

This commit is contained in:
The Wobbler 2025-02-20 17:53:03 +01:00
parent 65564deb82
commit a81ea15afd

View file

@ -62,7 +62,8 @@ class PlaylistView(QTreeWidget):
i += 1
if self.app.player.current_playlist.has_tracks():
# make sure the next track is cached (could be moved by user)
if self.app.player.current_playlist == self.playlist and self.app.player.current_playlist.has_tracks():
self.app.player.cache_next_track()
def dropEvent(self, event: QDropEvent):