Fix so adding cards to sideboard in Quest Deck Editor properly removes them from inventory

This commit is contained in:
drdev
2014-01-22 03:43:07 +00:00
parent 1709ed07c7
commit 7a193c0618

View File

@@ -120,20 +120,20 @@ public final class CEditorConstructed extends ACEditorBase<PaperCard, Deck> {
controller.getModel().getOrCreate(DeckSection.Sideboard).addAll(itemsToAdd);
break;
default:
break; //no other sections should support toAlternate
return; //no other sections should support toAlternate
}
}
else {
editor.getDeckManager().addItems(itemsToAdd);
}
if (editor.getCatalogManager().isInfinite()) {
//select all added cards in Catalog if infinite
editor.getCatalogManager().selectItemEntrys(itemsToAdd);
}
else {
//remove all added cards from Catalog if not infinite
editor.getCatalogManager().removeItems(items);
}
if (editor.getCatalogManager().isInfinite()) {
//select all added cards in Catalog if infinite
editor.getCatalogManager().selectItemEntrys(itemsToAdd);
}
else {
//remove all added cards from Catalog if not infinite
editor.getCatalogManager().removeItems(items);
}
controller.notifyModelChanged();