Commit e4448985 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix assert when displaying list of radios

parent 3a103b02
......@@ -281,10 +281,12 @@ QVariant DataModel::data(const QModelIndex &index, int role) const
switch (d->mModelType)
case ElisaUtils::Track:
case ElisaUtils::Radio:
case ElisaUtils::FileName:
result = d->mAllTrackData[index.row()][TrackDataType::key_type::ResourceRole];
case ElisaUtils::Radio:
result = d->mAllRadiosData[index.row()][TrackDataType::key_type::ResourceRole];
case ElisaUtils::Album:
case ElisaUtils::Artist:
case ElisaUtils::Genre:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment