Fixed another crash that occurred because of another player.current_playlist.has_tracks()-check when the current playlist was None.
This commit is contained in:
parent
65564deb82
commit
a81ea15afd
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ class PlaylistView(QTreeWidget):
|
|||
|
||||
i += 1
|
||||
|
||||
if self.app.player.current_playlist.has_tracks():
|
||||
# make sure the next track is cached (could be moved by user)
|
||||
if self.app.player.current_playlist == self.playlist and self.app.player.current_playlist.has_tracks():
|
||||
self.app.player.cache_next_track()
|
||||
|
||||
def dropEvent(self, event: QDropEvent):
|
||||
|
|
Loading…
Add table
Reference in a new issue