From 3cd6a75f4b71851ec8dd92a6338710f61b4989a5 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 2 Mar 2023 05:57:08 -0600 Subject: [PATCH] fixing the SongEditor after library changes --- src/qml/presenter/SongEditor.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index 83410b3..7522969 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -321,7 +321,7 @@ Item { clearSlides(); song = songProxyModel.songModel.getSong(index); console.log(song.lyrics); - songIndex = index; + songIndex = song.id; if (song.backgroundType == "image") { slideEditor.videoBackground = ""; @@ -345,7 +345,7 @@ Item { console.log(index); song = songProxyModel.songModel.getSong(index); console.log(song.lyrics); - songIndex = index; + songIndex = song.id; if (song.backgroundType == "image") { slideEditor.videoBackground = ""; @@ -360,13 +360,13 @@ Item { changeSlideVAlignment(song.verticalTextAlignment); changeSlideFont(song.font, true); changeSlideFontSize(song.fontSize, true) - changeSlideText(songIndex); + changeSlideText(songProxyModel.modelIndex(index).row); console.log(song.title); } function updateLyrics(lyrics) { songProxyModel.songModel.updateLyrics(songIndex, lyrics); - songLyrics = lyrics; + /* songLyrics = lyrics; */ clearSlides(); changeSlideText(songIndex); }