From 406b37e7ebac9f7effd34ef503ef8183746a6c33 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sun, 25 Sep 2022 07:08:18 -0500 Subject: [PATCH] fixing bad import of basic servicelist --- src/serviceitemmodel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/serviceitemmodel.cpp b/src/serviceitemmodel.cpp index c695534..9e8216d 100644 --- a/src/serviceitemmodel.cpp +++ b/src/serviceitemmodel.cpp @@ -10,7 +10,8 @@ ServiceItemModel::ServiceItemModel(QObject *parent) : QAbstractListModel(parent) { addItem(new ServiceItem("10,000 Reasons", "song", "file:/home/chris/nextcloud/tfc/openlp/CMG - Nature King 21.jpg", - "image", "file:/home/chris/nextcloud/tfc/openlp/music/Eden-Phil Wickham [lyrics].mp3" QStringList("Yip Yip"))); + "image", QStringList("Yip Yip"), + "file:/home/chris/nextcloud/tfc/openlp/music/Eden-Phil Wickham [lyrics].mp3")); addItem(new ServiceItem("Marvelous Light", "song", "file:/home/chris/nextcloud/tfc/openlp/Fire Embers_Loop.mp4", "video", QStringList("Hallelujah!"))); @@ -102,8 +103,8 @@ bool ServiceItemModel::setData(const QModelIndex &index, const QVariant &value, } break; case AudioRole: - if (item->audio() != value.toStringList()) { - item->setAudio(value.toStringList()); + if (item->audio() != value.toString()) { + item->setAudio(value.toString()); somethingChanged = true; } break;