fixing bad import of basic servicelist

This commit is contained in:
Chris Cochrun 2022-09-25 07:08:18 -05:00
parent c197277e62
commit 406b37e7eb

View file

@ -10,7 +10,8 @@ ServiceItemModel::ServiceItemModel(QObject *parent)
: QAbstractListModel(parent) { : QAbstractListModel(parent) {
addItem(new ServiceItem("10,000 Reasons", "song", addItem(new ServiceItem("10,000 Reasons", "song",
"file:/home/chris/nextcloud/tfc/openlp/CMG - Nature King 21.jpg", "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", addItem(new ServiceItem("Marvelous Light", "song",
"file:/home/chris/nextcloud/tfc/openlp/Fire Embers_Loop.mp4", "file:/home/chris/nextcloud/tfc/openlp/Fire Embers_Loop.mp4",
"video", QStringList("Hallelujah!"))); "video", QStringList("Hallelujah!")));
@ -102,8 +103,8 @@ bool ServiceItemModel::setData(const QModelIndex &index, const QVariant &value,
} }
break; break;
case AudioRole: case AudioRole:
if (item->audio() != value.toStringList()) { if (item->audio() != value.toString()) {
item->setAudio(value.toStringList()); item->setAudio(value.toString());
somethingChanged = true; somethingChanged = true;
} }
break; break;