From a81ea15afdca5529cc5612cf8c7ec6e0ce0ada36 Mon Sep 17 00:00:00 2001 From: The Wobbler Date: Thu, 20 Feb 2025 17:53:03 +0100 Subject: [PATCH] Fixed another crash that occurred because of another player.current_playlist.has_tracks()-check when the current playlist was None. --- wobuzz/ui/playlist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wobuzz/ui/playlist.py b/wobuzz/ui/playlist.py index 8703bcd..e8d4ce4 100644 --- a/wobuzz/ui/playlist.py +++ b/wobuzz/ui/playlist.py @@ -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):