trying to fix the dragging of items in the ServiceList
This commit is contained in:
parent
3d42418c5f
commit
28dadb880d
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ bool ServiceItemModel::moveRows(int sourceIndex, int destIndex, int count) {
|
|||
|
||||
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();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue