bug: new_song now works properly

This commit is contained in:
Chris Cochrun 2023-05-17 17:16:57 -05:00
parent e87f1094a9
commit 0eef97dcfe
2 changed files with 34 additions and 41 deletions

View file

@ -44,7 +44,7 @@ Item {
newItemFunction: (function() {
songProxyModel.setFilterRegularExpression("");
songProxyModel.songModel.newSong();
libraryList.currentIndex = songProxyModel.songModel.rowCount() - 1;
libraryList.currentIndex = songProxyModel.songModel.count() - 1;
if (!editMode)
editMode = true;
editSwitch(libraryList.currentIndex, "song");