mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-09 00:08:43 +01:00
parent
1a7194b3a9
commit
6a459682ca
@ -269,6 +269,10 @@ bool Playlist::set_column_value(Song &song, Playlist::Column column, const QVari
|
||||
|
||||
QVariant Playlist::data(const QModelIndex &idx, int role) const {
|
||||
|
||||
if (!idx.isValid()) {
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
switch (role) {
|
||||
case Role_IsCurrent:
|
||||
return current_item_index_.isValid() && idx.row() == current_item_index_.row();
|
||||
|
Loading…
x
Reference in New Issue
Block a user