Commit 95b05cc1 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Display existing search text in search field for application/process pages

If the actions of the current page include the table actions, they will
be recreated when switching pages. However, the actual search string
will persist and still filter the table. So ensure we display the
existing filter string when we switch back to avoid confusion of why not
everything is shown.

BUG: 433324
parent 955948e2
...@@ -28,6 +28,7 @@ Faces.SensorFace { ...@@ -28,6 +28,7 @@ Faces.SensorFace {
icon.name: "search" icon.name: "search"
text: i18nc("@action", "Search") text: i18nc("@action", "Search")
displayComponent: Kirigami.SearchField { displayComponent: Kirigami.SearchField {
text: table.filterString
onTextEdited: table.filterString = text; onTextEdited: table.filterString = text;
onAccepted: table.filterString = text; onAccepted: table.filterString = text;
} }
......
...@@ -28,6 +28,7 @@ Faces.SensorFace { ...@@ -28,6 +28,7 @@ Faces.SensorFace {
icon.name: "search" icon.name: "search"
text: i18nc("@action", "Search") text: i18nc("@action", "Search")
displayComponent: Kirigami.SearchField { displayComponent: Kirigami.SearchField {
text: table.nameFilterString
onTextEdited: table.nameFilterString = text; onTextEdited: table.nameFilterString = text;
onAccepted: table.nameFilterString = text; onAccepted: table.nameFilterString = text;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment