commenting

This commit is contained in:
Chris Cochrun 2023-02-28 17:37:32 -06:00
parent f472529de9
commit aba253559c

View file

@ -583,6 +583,8 @@ void SlideModel::insertItemFromService(const int &index, const ServiceItem &item
qDebug() << "***INSERTING SLIDE FROM SERVICEITEM***"; qDebug() << "***INSERTING SLIDE FROM SERVICEITEM***";
int slideId = findSlideIdFromServItm(index); int slideId = findSlideIdFromServItm(index);
// move all slides to the next serviceItem // move all slides to the next serviceItem
// this needs to happen first so that the slides are
// shifted appropriately
for (int i = slideId; i < rowCount(); i++) { for (int i = slideId; i < rowCount(); i++) {
m_items[i]->setServiceItemId(m_items[i]->serviceItemId() + 1); m_items[i]->setServiceItemId(m_items[i]->serviceItemId() + 1);
} }