Split icecast and listenlive streams into categories

This commit is contained in:
craig.p.drummond
2013-07-01 19:57:56 +00:00
parent 12705ed9e6
commit 7ae146cc65
3 changed files with 201 additions and 35 deletions

View File

@@ -112,6 +112,12 @@ bool StreamsProxyModel::lessThan(const QModelIndex &left, const QModelIndex &rig
if (!leftCat->isFavourites && rightCat->isFavourites) {
return false;
}
if (leftCat->isAll && !rightCat->isAll) {
return true;
}
if (!leftCat->isAll && rightCat->isAll) {
return false;
}
}
return QSortFilterProxyModel::lessThan(left, right);