JAL-2360 set new/loaded colour scheme name correctly
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 21 Dec 2016 16:52:12 +0000 (16:52 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 21 Dec 2016 16:52:12 +0000 (16:52 +0000)
src/jalview/gui/UserDefinedColours.java

index cfc464e..9c9290f 100755 (executable)
@@ -528,7 +528,6 @@ public class UserDefinedColours extends GUserDefinedColours implements
 
     }
     UserColourScheme ucs = getSchemeFromButtons();
-    ucs.setName(schemeName.getText());
 
     if (seqGroup != null)
     {
@@ -570,6 +569,7 @@ public class UserDefinedColours extends GUserDefinedColours implements
     }
 
     UserColourScheme ucs = new UserColourScheme(newColours);
+    ucs.setName(schemeName.getText());
 
     if (caseSensitive.isSelected())
     {