Merge pull request #910 from ctrlaltca/fix_118
Fixes columns being split by selected sections; Fix #118
This commit is contained in:
commit
174d309b67
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 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);
|
||||
|
|
Loading…
Reference in a new issue