From 9397adee039fcfca07957d9de39e11fcdeea243e Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Wed, 2 Mar 2022 22:04:53 +0000 Subject: [PATCH] Don't allow active tab to be closed --- app/musicmuster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index 987480f..301b42a 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -224,7 +224,7 @@ class Window(QMainWindow, Ui_MainWindow): Close tab unless it holds the curren or next track """ - if hasattr(self.tabPlaylist.widget(index), 'playlist'): + if hasattr(self.tabPlaylist.widget(index), 'playlist_id'): if self.tabPlaylist.widget(index) == ( self.current_track_playlist_tab): self.statusbar.showMessage(