diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-30 12:01:53 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-30 12:01:53 +0200 |
commit | 8facde1b30e8bd478409a6752eaeceebe6ba3e98 (patch) | |
tree | 566b6381aa7dfbddc568dad938d1dccf6ebc47bc /src/jrummikub/view | |
parent | 17f9e338cb71b8d56b56dc30dc49123e4d5c407b (diff) | |
download | JRummikub-8facde1b30e8bd478409a6752eaeceebe6ba3e98.tar JRummikub-8facde1b30e8bd478409a6752eaeceebe6ba3e98.zip |
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
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/impl/SettingsPanel.java | 3 |
1 files changed, 3 insertions, 0 deletions
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<Type> playerTypeChoices) { + if (playerTypeChoices.equals(this.playerTypeChoices)) { + return; + } this.playerTypeChoices = playerTypeChoices; Vector<String> choices = new Vector<String>(); |