From af4f26737709f5ceb950bc89248afc127451305b Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sat, 1 Feb 2025 13:43:49 +0100 Subject: [PATCH] Fixed another crash that occurred when double-clicking on the tab-bar but not on a tab. --- wobuzz/ui/playlist_tabs/tab_bar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wobuzz/ui/playlist_tabs/tab_bar.py b/wobuzz/ui/playlist_tabs/tab_bar.py index 5fe22dd..38ffaec 100644 --- a/wobuzz/ui/playlist_tabs/tab_bar.py +++ b/wobuzz/ui/playlist_tabs/tab_bar.py @@ -36,6 +36,10 @@ class PlaylistTabBar(QTabBar): def on_doubleclick(self, index): playlist_view = self.tab_widget.widget(index) + + if playlist_view is None: # dont crash if no playlist was double-clicked + return + playlist = playlist_view.playlist if playlist.has_tracks(): # dont crash when playlist is empty