Fixed event cascade causing significant slow down when updating the

settings panel

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@600 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-06-30 12:01:53 +02:00
parent 17f9e338cb
commit 8facde1b30

View file

@ -927,6 +927,9 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
}
public void setChoices(List<Type> playerTypeChoices) {
if (playerTypeChoices.equals(this.playerTypeChoices)) {
return;
}
this.playerTypeChoices = playerTypeChoices;
Vector<String> choices = new Vector<String>();