imported properties via -props should never be overwritten
authorjprocter <Jim Procter>
Fri, 8 Apr 2011 16:10:21 +0000 (16:10 +0000)
committerjprocter <Jim Procter>
Fri, 8 Apr 2011 16:10:21 +0000 (16:10 +0000)
src/jalview/bin/Cache.java

index 75fb618..f77c2f1 100755 (executable)
@@ -227,6 +227,9 @@ public class Cache
     {
       propertiesFile = System.getProperty("user.home") + File.separatorChar
               + ".jalview_properties";
+    } else {
+      // don't corrupt the file we've been given.
+      propsAreReadOnly = true;
     }
 
     try