Merge pull request #910 from ctrlaltca/fix_118

Fixes columns being split by selected sections; Fix #118
This commit is contained in:
Zach 2015-04-04 10:15:33 -04:00
commit 174d309b67

View file

@ -311,9 +311,9 @@ void DeckListModel::sortHelper(InnerDecklistNode *node, Qt::SortOrder order)
const int fromRow = sortResult[i].first;
const int toRow = sortResult[i].second;
AbstractDecklistNode *temp = node->at(toRow);
for (int j = columnCount(); j; --j) {
from << createIndex(fromRow, 0, temp);
to << createIndex(toRow, 0, temp);
for (int j = 0; j < columnCount(); ++j) {
from << createIndex(fromRow, j, temp);
to << createIndex(toRow, j, temp);
}
}
changePersistentIndexList(from, to);