mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Sorting of card list distributed to all card lists that share the same game.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@504 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -224,6 +224,15 @@ void CardListBase::rebuild() {
|
||||
refreshList();
|
||||
}
|
||||
|
||||
void CardListBase::sortBy(long column, bool ascending) {
|
||||
// sort all card lists for this game
|
||||
FOR_EACH(card_list, card_lists) {
|
||||
if (card_list->set && card_list->set->game == set->game) {
|
||||
card_list->ItemList::sortBy(column, ascending);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : CardListBase : Columns
|
||||
|
||||
void CardListBase::storeColumns() {
|
||||
|
||||
Reference in New Issue
Block a user