parent
b8401592d4
commit
cab1e096df
1 changed files with 3 additions and 3 deletions
|
@ -311,9 +311,9 @@ void DeckListModel::sortHelper(InnerDecklistNode *node, Qt::SortOrder order)
|
||||||
const int fromRow = sortResult[i].first;
|
const int fromRow = sortResult[i].first;
|
||||||
const int toRow = sortResult[i].second;
|
const int toRow = sortResult[i].second;
|
||||||
AbstractDecklistNode *temp = node->at(toRow);
|
AbstractDecklistNode *temp = node->at(toRow);
|
||||||
for (int j = columnCount(); j; --j) {
|
for (int j = 0; j < columnCount(); ++j) {
|
||||||
from << createIndex(fromRow, 0, temp);
|
from << createIndex(fromRow, j, temp);
|
||||||
to << createIndex(toRow, 0, temp);
|
to << createIndex(toRow, j, temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
changePersistentIndexList(from, to);
|
changePersistentIndexList(from, to);
|
||||||
|
|
Loading…
Reference in a new issue