From 564aec2bda1a6cc6d8802f32acb37f14a9fff459 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 3 Apr 2024 06:37:31 -0500 Subject: [PATCH] fix updating properties from the SongEditor.qml Since we get the original songID from the proxy model, it somehow differs from the song_model.rs id. So, in the future, I should figure out how to get the original id and use that so that these sorts of bugs aren't quite as hard to find --- src/qml/presenter/SongEditor.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index b264d83..97ef194 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -512,7 +512,7 @@ Item { songEditorModel.fontSize = updatedSong.fontSize; songEditorModel.checkVerseOrder(); songEditorModel.checkFiles(); - songID = index; + songID = updatedSong.id; changeSlideHAlignment(song.horizontalTextAlignment); changeSlideVAlignment(song.verticalTextAlignment); @@ -563,6 +563,8 @@ Item { function updateAudioFile() { const file = fileHelper.loadFile("Pick Audio", "audio"); + Utils.dbg("song: " + songID); + Utils.dbg("song-title: " + songEditorModel.title) songEditorModel.audio = file; songProxyModel.songModel.updateAudio(songID, file); songEditorModel.checkFiles();