JAL-2315 Clear sequenceURLLinks if all sequence links are removed.
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 4 Nov 2016 16:43:01 +0000 (16:43 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 4 Nov 2016 16:43:01 +0000 (16:43 +0000)
src/jalview/gui/Preferences.java

index 4f094e1..3bffd3a 100755 (executable)
@@ -20,8 +20,8 @@
  */
 package jalview.gui;
 
-import static jalview.util.UrlConstants.EMBLEBI_STRING;
 import static jalview.util.UrlConstants.DB_ACCESSION;
+import static jalview.util.UrlConstants.EMBLEBI_STRING;
 import static jalview.util.UrlConstants.SEQUENCE_ID;
 import static jalview.util.UrlConstants.SRS_STRING;
 
@@ -567,6 +567,7 @@ public class Preferences extends GPreferences
     else
     {
       Cache.applicationProperties.remove("SEQUENCE_LINKS");
+      sequenceURLLinks.clear();
     }
 
     Cache.applicationProperties.setProperty("USE_PROXY",