fixed slides not being cleared in SongEditor, still have crashes

This commit is contained in:
Chris Cochrun 2022-09-07 05:38:08 -05:00
parent ae2791eb61
commit da1fb49c64
3 changed files with 16 additions and 6 deletions

View file

@ -21,6 +21,7 @@ Item {
property bool playingVideo: false
property ListModel songs: songModel
property ListView songSlides: slideList
property var firstItem
@ -160,4 +161,5 @@ Item {
print(slideList.currentItem);
}
}
}

View file

@ -278,6 +278,7 @@ Item {
}
function changeSong(index) {
clearSlides();
const s = songsqlmodel.getSong(index);
song = s;
songLyrics = s.lyrics;
@ -420,9 +421,12 @@ Item {
}
function changeSlideText(id) {
const verses = songsqlmodel.getLyricList(id);
/* print("Here are the verses: " + verses); */
slideEditor.songs.clear()
const verses = songsqlmodel.getLyricList(id);
verses.forEach(slideEditor.appendVerse);
}
function clearSlides() {
slideEditor.songs.clear()
}
}