Re-add bookmarking of TuneIn categories
BUG:252
This commit is contained in:
committed by
craig.p.drummond
parent
559ed9a64d
commit
8a36efbcbc
@@ -130,7 +130,13 @@ QVariant StreamSearchModel::data(const QModelIndex &index, int role) const
|
||||
}
|
||||
break;
|
||||
case ItemView::Role_Actions:
|
||||
if (!item->isCategory()){
|
||||
if (item->isCategory()){
|
||||
if (static_cast<const StreamsModel::CategoryItem *>(item)->canBookmark) {
|
||||
QVariant v;
|
||||
v.setValue<QList<Action *> >(QList<Action *>() << StdActions::self()->addBookmarkAction);
|
||||
return v;
|
||||
}
|
||||
} else {
|
||||
QVariant v;
|
||||
v.setValue<QList<Action *> >(QList<Action *>() << StdActions::self()->replacePlayQueueAction << addToFavouritesAction);
|
||||
return v;
|
||||
|
||||
Reference in New Issue
Block a user