using more innerModels since they are already loaded

This commit is contained in:
Chris Cochrun 2023-05-18 06:39:22 -05:00
parent ae6ffd9595
commit ad2ed98968
2 changed files with 3 additions and 20 deletions

View file

@ -40,11 +40,11 @@ Item {
headerLabel: "Songs"
itemIcon: "folder-music-symbolic"
/* itemSubtitle: model.author */
count: innerModel.rowCount()
count: innerModel.count()
newItemFunction: (function() {
songProxyModel.setFilterRegularExpression("");
songProxyModel.songModel.newSong();
libraryList.currentIndex = songProxyModel.songModel.count() - 1;
innerModel.newSong();
libraryList.currentIndex = innerModel.count() - 1;
if (!editMode)
editMode = true;
editSwitch(libraryList.currentIndex, "song");