@@ -33,6 +33,7 @@ Item {
3333 property bool searchEntryEnabled: false
3434 property bool settingsEnabled: false
3535 property bool favoriteEnabled: false
36+ property bool favorite: false
3637 property ListModel searchHistory: SearchHistoryModel
3738 property alias searchQuery: searchTextField.text
3839 property alias searchHint: searchTextField.placeholderText
@@ -42,7 +43,6 @@ Item {
4243 property int paginationCount: 0
4344 property int paginationIndex: -1
4445
45− property var scope: null
4646 property var scopeStyle: null
4747
4848 signal backClicked()
@@ -276,8 +276,8 @@ Item {
276276 },
277277 Action {
278278 objectName: "favorite"
279− text: root.scope && root.scope.favorite ? i18n.tr("Remove from Favorites") : i18n.tr("Add to Favorites")
280− iconName: root.scope && root.scope.favorite ? "starred" : "non-starred"
279+ text: root.favorite ? i18n.tr("Remove from Favorites") : i18n.tr("Add to Favorites")
280+ iconName: root.favorite ? "starred" : "non-starred"
281281 visible: root.favoriteEnabled
282282 onTriggered: {
283283 root.favoriteClicked()