fixed slides not being cleared in SongEditor, still have crashes
This commit is contained in:
parent
ae2791eb61
commit
da1fb49c64
3 changed files with 16 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue