Don't allow active tab to be closed

This commit is contained in:
Keith Edmunds 2022-03-02 22:04:53 +00:00
parent 4a83e9af86
commit 9397adee03

View File

@ -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(