From 8facde1b30e8bd478409a6752eaeceebe6ba3e98 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 30 Jun 2011 12:01:53 +0200 Subject: 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 --- src/jrummikub/view/impl/SettingsPanel.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java index 7135fe8..4fc33e4 100644 --- a/src/jrummikub/view/impl/SettingsPanel.java +++ b/src/jrummikub/view/impl/SettingsPanel.java @@ -927,6 +927,9 @@ class SettingsPanel extends JPanel implements ISettingsPanel { } public void setChoices(List playerTypeChoices) { + if (playerTypeChoices.equals(this.playerTypeChoices)) { + return; + } this.playerTypeChoices = playerTypeChoices; Vector choices = new Vector(); -- cgit v1.2.3