parent
243bc765f9
commit
6391490f9d
@ -306,7 +306,13 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
if unplayed_rows:
|
if unplayed_rows:
|
||||||
try:
|
try:
|
||||||
# Find next row after current track
|
# 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:
|
except ValueError:
|
||||||
# Find first unplayed track
|
# Find first unplayed track
|
||||||
next_row = min(unplayed_rows)
|
next_row = min(unplayed_rows)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user