Don't allow active tab to be closed
This commit is contained in:
parent
4a83e9af86
commit
9397adee03
@ -224,7 +224,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
Close tab unless it holds the curren or next track
|
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) == (
|
if self.tabPlaylist.widget(index) == (
|
||||||
self.current_track_playlist_tab):
|
self.current_track_playlist_tab):
|
||||||
self.statusbar.showMessage(
|
self.statusbar.showMessage(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user