adding song while text in search field resets and appends song
This commit is contained in:
parent
f1ea742453
commit
6a0fb02c52
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue