@@ -49,6 +49,7 @@ Item {
50 property var scopeStyle: null
50 property var scopeStyle: null
52+ signal clearSearch(bool keepPanelOpen)
52 signal backClicked()
53 signal backClicked()
53 signal storeClicked()
54 signal storeClicked()
54 signal settingsClicked()
55 signal settingsClicked()
@@ -205,14 +206,14 @@ Item {
205 secondaryItem: AbstractButton {
206 secondaryItem: AbstractButton {
206 height: searchTextField.height
207 height: searchTextField.height
207 width: height
208 width: height
208− enabled: searchTextField.text.length > 0
209+ enabled: searchTextField.text.length > 0 || root.navigationTag != ""
211 objectName: "clearIcon"
212 objectName: "clearIcon"
212 anchors.fill: parent
213 anchors.fill: parent
213 anchors.margins: units.gu(.75)
214 anchors.margins: units.gu(.75)
214 source: "image://theme/clear"
215 source: "image://theme/clear"
215− opacity: searchTextField.text.length > 0
216+ opacity: parent.enabled
216 visible: opacity > 0
217 visible: opacity > 0
217 Behavior on opacity {
218 Behavior on opacity {
218 UbuntuNumberAnimation { duration: UbuntuAnimation.FastDuration }
219 UbuntuNumberAnimation { duration: UbuntuAnimation.FastDuration }
@@ -220,8 +221,7 @@ Item {
222 onClicked: {
223 onClicked: {
223− root.resetSearch(true);
224+ root.clearSearch(true);
@@ -252,7 +252,7 @@ Item {
252 AbstractButton {
252 AbstractButton {
253 anchors.fill: parent
253 anchors.fill: parent
254 onClicked: {
254 onClicked: {
255− root.resetSearch();
255+ root.clearSearch(false);
256 headerContainer.showSearch = false;
256 headerContainer.showSearch = false;