Fix not recording playlist rows as played
This commit is contained in:
parent
90424e917e
commit
ed4a106bec
@ -718,7 +718,11 @@ class PlaylistTab(QTableWidget):
|
|||||||
- Update display
|
- Update display
|
||||||
"""
|
"""
|
||||||
|
|
||||||
search_from = self._get_current_track_row_number() + 1
|
current_row = self._get_current_track_row_number()
|
||||||
|
if not current_row:
|
||||||
|
return
|
||||||
|
|
||||||
|
search_from = current_row + 1
|
||||||
|
|
||||||
# Mark current row as played
|
# Mark current row as played
|
||||||
self._set_played_row(session, current_row)
|
self._set_played_row(session, current_row)
|
||||||
@ -744,6 +748,9 @@ class PlaylistTab(QTableWidget):
|
|||||||
|
|
||||||
# Add the rows
|
# Add the rows
|
||||||
playlist = session.get(Playlists, playlist_id)
|
playlist = session.get(Playlists, playlist_id)
|
||||||
|
if not playlist:
|
||||||
|
return
|
||||||
|
|
||||||
for plr in playlist.rows:
|
for plr in playlist.rows:
|
||||||
self.insert_row(session, plr, repaint=False)
|
self.insert_row(session, plr, repaint=False)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user