forked from External/mage
* Changes to clear of card panel on panel remove.
This commit is contained in:
parent
e9dc1a1c68
commit
6fe430ecba
2 changed files with 3 additions and 2 deletions
|
|
@ -229,7 +229,7 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener,
|
|||
// remove possible mouse listeners, preventing gc
|
||||
for (MageCard mageCard: cards.values()) {
|
||||
if (mageCard instanceof CardPanel) {
|
||||
((CardPanel)mageCard).clear();
|
||||
((CardPanel)mageCard).cleanUp();
|
||||
}
|
||||
}
|
||||
this.cards.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue