using more innerModels since they are already loaded
This commit is contained in:
parent
ae6ffd9595
commit
ad2ed98968
2 changed files with 3 additions and 20 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue