commenting
This commit is contained in:
parent
f472529de9
commit
aba253559c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue