From: gmungoc Date: Mon, 29 Jun 2020 09:25:06 +0000 (+0100) Subject: JAL-3400 prevent duplications in View Chain menu X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ad94fe2f24935ae35a6531d52b706cea889196d2;p=jalview.git JAL-3400 prevent duplications in View Chain menu --- diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index 77ba38d..1bb651a 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -1053,7 +1053,10 @@ public abstract class StructureViewerBase extends GStructureViewer repaint(); return; } - setChainMenuItems(binding.getChainNames()); + synchronized (chainMenu) + { + setChainMenuItems(binding.getChainNames()); + } this.setTitle(binding.getViewerTitle(getViewerName(), true));