Fixed another crash that occurred when double-clicking on the tab-bar but not on a tab.
This commit is contained in:
parent
85dfa412d0
commit
af4f267377
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue