parent
243bc765f9
commit
6391490f9d
@ -306,7 +306,13 @@ class PlaylistModel(QAbstractTableModel):
|
||||
if unplayed_rows:
|
||||
try:
|
||||
# Find next row after current track
|
||||
next_row = min([a for a in unplayed_rows if a > row_number])
|
||||
next_row = min(
|
||||
[
|
||||
a
|
||||
for a in unplayed_rows
|
||||
if a > row_number and not self.is_header_row(a)
|
||||
]
|
||||
)
|
||||
except ValueError:
|
||||
# Find first unplayed track
|
||||
next_row = min(unplayed_rows)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user