Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
174d309b
Commit
174d309b
authored
Apr 04, 2015
by
Zach
Browse files
Merge pull request #910 from ctrlaltca/fix_118
Fixes columns being split by selected sections; Fix #118
parents
b8401592
cab1e096
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/decklistmodel.cpp
View file @
174d309b
...
@@ -311,9 +311,9 @@ void DeckListModel::sortHelper(InnerDecklistNode *node, Qt::SortOrder order)
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment