Fixed Issue 15: Graveyard card list becomes unavailable

This commit is contained in:
magenoxx 2010-12-22 00:17:18 +03:00
parent a130286a3d
commit 55957f17a0

View file

@ -72,8 +72,9 @@ public class ShowCardsDialog extends MageDialog implements MouseListener {
else
loadCardsMany(showCards, bigCard, dimension, gameId);
cardArea.revalidate();
if (getParent() != MageFrame.getDesktop() || this.isClosed)
MageFrame.getDesktop().add(this, JLayeredPane.PALETTE_LAYER);
if (getParent() != MageFrame.getDesktop() /*|| this.isClosed*/) {
MageFrame.getDesktop().add(this, JLayeredPane.POPUP_LAYER);
}
pack();
this.revalidate();
this.repaint();