@@ -26,6 +26,9 @@ Item {
26 property var scopeStyle
26 property var scopeStyle
27 property bool editMode: false
27 property bool editMode: false
29+ readonly property bool isFavoritesFeed: root.model.categoryId == "favorites"
30+ readonly property bool isOtherFeed: root.model.categoryId == "other"
29 visible: !editMode || categoryId == "favorites"
32 visible: !editMode || categoryId == "favorites"
31 signal requestFavorite(string scopeId, bool favorite)
34 signal requestFavorite(string scopeId, bool favorite)
@@ -40,8 +43,8 @@ Item {
40 width: root.width
43 width: root.width
41 height: units.gu(5)
44 height: units.gu(5)
43− if (categoryId == "favorites") return i18n.tr("Favourite Feeds");
46+ if (isFavoritesFeed) return i18n.tr("Favourite Feeds");
44− else if (categoryId == "other") return i18n.tr("Other Subscribed Feeds");
47+ else if (isOtherFeed) return i18n.tr("Other Subscribed Feeds");
45 else return name;
48 else return name;
47 color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
50 color: scopeStyle ? scopeStyle.foreground : Theme.palette.normal.baseText
@@ -76,7 +79,8 @@ Item {
77 icon: model.art || ""
80 icon: model.art || ""
78 text: model.title || ""
81 text: model.title || ""
79− showStar: model.scopeId != "clickscope" && (categoryId == "favorites" || categoryId == "other")
82+ showStar: model.scopeId != "clickscope" && (root.isFavoritesFeed || root.isOtherFeed)
83+ isFavorite: root.isFavoritesFeed
81 onClicked: root.requestActivate(result);
85 onClicked: root.requestActivate(result);
82 onRequestFavorite: root.requestFavorite(model.scopeId, favorite);
86 onRequestFavorite: root.requestFavorite(model.scopeId, favorite);