@@ -200,6 +200,8 @@ Item {
200200 rightMargin: units.gu(1)
201201 }
202202
203+ readonly property bool clearIsSettings: !searchTextField.focus && root.scopeHasFilters
204+
203205 primaryItem: Label {
204206 text: root.navigationTag
205207 }
@@ -210,13 +212,11 @@ Item {
210212 width: height
211213 enabled: searchTextField.text.length > 0 || root.navigationTag != ""
212214
213− readonly property bool clearIsSettings: !searchTextField.focus && root.scopeHasFilters
214−
215215 Image {
216216 objectName: "clearIcon"
217217 anchors.fill: parent
218218 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"
220220 opacity: parent.enabled
221221 visible: opacity > 0
222222 Behavior on opacity {
@@ -225,7 +225,7 @@ Item {
225225 }
226226
227227 onClicked: {
228− if (clearIsSettings) {
228+ if (searchTextField.clearIsSettings) {
229229 root.showFiltersPopup(clearOrSettingsButton);
230230 } else {
231231 root.clearSearch(true);