Fixed another crash that occurred because of a missing playlist.has_tracks() check.
This commit is contained in:
parent
95d40dd30c
commit
67c3b9e226
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ class TrackControl(QToolBar):
|
||||||
self.app.player.start_playing()
|
self.app.player.start_playing()
|
||||||
|
|
||||||
elif self.app.player.current_playlist.title == "None":
|
elif self.app.player.current_playlist.title == "None":
|
||||||
self.app.player.start_playlist(self.app.gui.clicked_playlist)
|
if self.app.gui.clicked_playlist.has_tracks():
|
||||||
|
self.app.player.start_playlist(self.app.gui.clicked_playlist)
|
||||||
|
|
||||||
def on_playstate_update(self):
|
def on_playstate_update(self):
|
||||||
if self.app.player.playing:
|
if self.app.player.playing:
|
||||||
|
|
Loading…
Add table
Reference in a new issue