From 928017f8d5b3b70273b62ac83a9015fe2e785ff3 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 26 Feb 2019 11:39:34 +0000 Subject: [PATCH] JAL-3201 JAL-2386 don't pre-select 'apply to all groups' --- src/jalview/gui/SliderPanel.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index 93a2457..f98139b 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -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()); + } + } } -- 1.7.10.2