JAL-3201 JAL-2386 don't pre-select 'apply to all groups'
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 26 Feb 2019 11:39:34 +0000 (11:39 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 26 Feb 2019 11:39:34 +0000 (11:39 +0000)
src/jalview/gui/SliderPanel.java

index 93a2457..f98139b 100755 (executable)
@@ -26,6 +26,7 @@ import jalview.jbgui.GSliderPanel;
 import jalview.renderer.ResidueShaderI;
 import jalview.util.MessageManager;
 
+import java.awt.event.ActionEvent;
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
 import java.beans.PropertyVetoException;
@@ -396,7 +397,6 @@ public class SliderPanel extends GSliderPanel
   public void setAllGroupsCheckEnabled(boolean b)
   {
     allGroupsCheck.setEnabled(b);
-    allGroupsCheck.setSelected(ap.av.getColourAppliesToAllGroups());
   }
 
   /**
@@ -497,4 +497,13 @@ public class SliderPanel extends GSliderPanel
     }
     return title;
   }
+
+  @Override
+  protected void allGroupsCheck_actionPerformed(ActionEvent e)
+  {
+    if (allGroupsCheck.isSelected())
+    {
+      valueChanged(slider.getValue());
+    }
+  }
 }