fixing getSong not working after deleting songs

This commit is contained in:
Chris Cochrun 2022-09-29 05:58:06 -05:00
parent 8b6e5e2ad3
commit 4d9236e02c
3 changed files with 31 additions and 6 deletions

View file

@ -241,12 +241,12 @@ Item {
if(mouse.button == Qt.RightButton)
rightClickSongMenu.popup()
else{
showPassiveNotification(title, 3000)
songLibraryList.currentIndex = index
showPassiveNotification(title + id, 3000);
songLibraryList.currentIndex = index;
if (!editMode)
editMode = true;
editType = "song";
editSwitch(index);
editSwitch(id);
}
}

View file

@ -320,6 +320,7 @@ Item {
function changeSong(index) {
clearSlides();
print(index);
const s = songsqlmodel.getSong(index);
song = s;
songLyrics = s.lyrics;