[multimedia/kasts] src/qml: Clear search when closing search bar

Bart De Vries <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6c13856a1f1a7fef563a73a442b7d4d632f0d08a by Bart De Vries, on behalf of Tobias Fella.
Committed on 03/08/2026 at 08:00.
Pushed by bdevries into branch 'master'.

Clear search when closing search bar

M  +2    -0    src/qml/SearchBar.qml

https://invent.kde.org/multimedia/kasts/-/commit/6c13856a1f1a7fef563a73a442b7d4d632f0d08a

diff --git a/src/qml/SearchBar.qml b/src/qml/SearchBar.qml
index b8f3f73f..ca74f826 100644
--- a/src/qml/SearchBar.qml
+++ b/src/qml/SearchBar.qml
@@ -23,6 +23,8 @@ Controls.Control {
     property bool showSearchFilters: true
     required property string placeholderText
 
+    Component.onDestruction: proxyModel.searchFilter = ""
+
     leftPadding: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing
     rightPadding: Kirigami.Units.largeSpacing
     topPadding: Kirigami.Units.smallSpacing
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.