JAL-766 JAL-733 - new alignment->jmol associations are automatically used to colour...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 14 Sep 2011 10:51:29 +0000 (11:51 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 14 Sep 2011 10:51:29 +0000 (11:51 +0100)
src/jalview/gui/ViewSelectionMenu.java

index bca2988..c5433e5 100644 (file)
@@ -121,7 +121,8 @@ public class ViewSelectionMenu extends JMenu
     }
     if (allviews.length >= 2)
     {
-      
+      // ensure we update menu state to reflect external selection list state
+      append = append || _selectedviews.size()>1;
       toggleview = new JCheckBoxMenuItem("Select many views",append);
       toggleview.setToolTipText("When enabled, allows many views to be selected.");
       toggleview.addItemListener(new ItemListener() {