@@ -42,15 +42,11 @@ Item {
42 if (searchEntryEnabled) searchTextField.forceActiveFocus()
42 if (searchEntryEnabled) searchTextField.forceActiveFocus()
45− function resetSearch(unfocusField) {
45+ function resetSearch(keepFocus) {
46− if (unfocusField == undefined) {
50 if (searchHistory) {
46 if (searchHistory) {
51 searchHistory.addQuery(searchTextField.text);
47 searchHistory.addQuery(searchTextField.text);
53− if (unfocusField) {
49+ if (!keepFocus) {
54 unfocus();
50 unfocus();
56 searchTextField.text = "";
52 searchTextField.text = "";
@@ -129,7 +125,7 @@ Item {
129 backAction: Action {
125 backAction: Action {
130 iconName: "back"
126 iconName: "back"
131 onTriggered: {
127 onTriggered: {
132− root.resetSearch(true)
128+ root.resetSearch()
133 headerContainer.showSearch = false
129 headerContainer.showSearch = false
@@ -171,7 +167,7 @@ Item {
173 onClicked: {
169 onClicked: {
174− root.resetSearch(false)
170+ root.resetSearch(true)
175 root.openSearchHistory()
171 root.openSearchHistory()