adjusting move requirements
This commit is contained in:
parent
4520289c62
commit
a1ad9271da
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ bool ServiceItemModel::move(int sourceIndex, int destIndex) {
|
||||||
qDebug() << index(destIndex).row();
|
qDebug() << index(destIndex).row();
|
||||||
QModelIndex parent = index(sourceIndex).parent();
|
QModelIndex parent = index(sourceIndex).parent();
|
||||||
if (sourceIndex >= 0 && sourceIndex != destIndex &&
|
if (sourceIndex >= 0 && sourceIndex != destIndex &&
|
||||||
destIndex >= -1 && destIndex <= rowCount() &&
|
destIndex > -1 && destIndex <= rowCount() &&
|
||||||
sourceIndex < rowCount()) {
|
sourceIndex < rowCount()) {
|
||||||
qDebug() << "starting move: " << "source: " << sourceIndex << "dest: " << destIndex;
|
qDebug() << "starting move: " << "source: " << sourceIndex << "dest: " << destIndex;
|
||||||
bool begsuc = beginMoveRows(parent, sourceIndex,
|
bool begsuc = beginMoveRows(parent, sourceIndex,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue