trying to fix the dragging of items in the ServiceList

This commit is contained in:
Chris Cochrun 2023-01-11 13:44:12 -06:00
parent 3d42418c5f
commit 28dadb880d

View file

@ -345,7 +345,7 @@ bool ServiceItemModel::moveRows(int sourceIndex, int destIndex, int count) {
qDebug() << "starting move: " << "source: " << sourceIndex << "dest: " << destIndex; qDebug() << "starting move: " << "source: " << sourceIndex << "dest: " << destIndex;
m_items.move(sourceIndex, isMoveDown ? destIndex + 1 : destIndex); m_items.insert(destIndex, m_items.takeAt(isMoveDown ? sourceIndex : sourceIndex + 1));
endMoveRows(); endMoveRows();
return true; return true;