From 6a0fb02c5208573cce1843a4f70bdcc21ddd65b9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 18 Feb 2023 06:52:52 -0600 Subject: [PATCH] adding song while text in search field resets and appends song --- src/qml/presenter/Library.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/presenter/Library.qml b/src/qml/presenter/Library.qml index aaa85d1..a10809c 100644 --- a/src/qml/presenter/Library.qml +++ b/src/qml/presenter/Library.qml @@ -122,10 +122,10 @@ Item { Kirigami.Action { displayComponent: Component { Kirigami.SearchField { - id: searchField + id: songSearchField height: parent.height width: parent.width - 40 - onAccepted: songProxyModel.setFilterRegularExpression(searchField.text) + onAccepted: songProxyModel.setFilterRegularExpression(songSearchField.text) } } /* visible: selectedLibrary == "songs" */ @@ -313,6 +313,7 @@ Item { function newSong() { songProxyModel.songModel.newSong(); + songSearchField.clear(); songLibraryList.currentIndex = songProxyModel.songModel.rowCount() - 1; if (!editMode) editMode = true;