JAL-2465 fix to prevent files loaded from the system's temporary directory from being...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 26 May 2017 13:48:44 +0000 (14:48 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 26 May 2017 13:48:44 +0000 (14:48 +0100)
src/jalview/io/FileLoader.java

index 8b753e6..bd8bc53 100755 (executable)
@@ -208,6 +208,12 @@ public class FileLoader implements Runnable
       // refer to it as.
       return;
     }
+    if (file != null
+            && file.indexOf(System.getProperty("java.io.tmpdir")) > -1)
+    {
+      // ignore files loaded from the system's temporary directory
+      return;
+    }
     String type = protocol == DataSourceType.FILE ? "RECENT_FILE"
             : "RECENT_URL";