@@ -200,6 +200,8 @@ Item {
200 rightMargin: units.gu(1)
200 rightMargin: units.gu(1)
203+ readonly property bool clearIsSettings: !searchTextField.focus && root.scopeHasFilters
203 primaryItem: Label {
205 primaryItem: Label {
204 text: root.navigationTag
206 text: root.navigationTag
@@ -210,13 +212,11 @@ Item {
210 width: height
212 width: height
211 enabled: searchTextField.text.length > 0 || root.navigationTag != ""
213 enabled: searchTextField.text.length > 0 || root.navigationTag != ""
213− readonly property bool clearIsSettings: !searchTextField.focus && root.scopeHasFilters
216 objectName: "clearIcon"
216 objectName: "clearIcon"
217 anchors.fill: parent
217 anchors.fill: parent
218 anchors.margins: units.gu(.75)
218 anchors.margins: units.gu(.75)
219− source: parent.clearIsSettings ? "image://theme/settings" : "image://theme/clear"
219+ source: searchTextField.clearIsSettings ? "image://theme/settings" : "image://theme/clear"
220 opacity: parent.enabled
220 opacity: parent.enabled
221 visible: opacity > 0
221 visible: opacity > 0
222 Behavior on opacity {
222 Behavior on opacity {
@@ -225,7 +225,7 @@ Item {
227 onClicked: {
227 onClicked: {
228− if (clearIsSettings) {
228+ if (searchTextField.clearIsSettings) {
229 root.showFiltersPopup(clearOrSettingsButton);
229 root.showFiltersPopup(clearOrSettingsButton);
231 root.clearSearch(true);
231 root.clearSearch(true);