From 582448a024f9dce2c8874bc3e1abb73ba3415b89 Mon Sep 17 00:00:00 2001 From: The Wobbler Date: Fri, 28 Feb 2025 19:38:29 +0100 Subject: [PATCH] Fixed another crash that was similar to the last one. The crash occurred when the temporary playlist got deleted and then loaded again. It occurred because library.temporary_playlist didn't get set to None on deletion. --- wobuzz/player/playlist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wobuzz/player/playlist.py b/wobuzz/player/playlist.py index 445c9da..0734dcf 100644 --- a/wobuzz/player/playlist.py +++ b/wobuzz/player/playlist.py @@ -312,6 +312,9 @@ class Playlist: for track in self.tracks: # remove items that corresponded to the track and this playlist track.delete_items(self) + if self == self.app.library.temporary_playlist: + self.app.library.temporary_playlist = None + self.app.utils.unique_names.remove(self.title) self.app.library.playlists.remove(self)