From: tcofoegbu Date: Fri, 26 May 2017 13:48:44 +0000 (+0100) Subject: JAL-2465 fix to prevent files loaded from the system's temporary directory from being... X-Git-Tag: Release_2_10_2~3^2~57^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=10eedfb43dacd4cf32d4b5fe27d8d5987c70eaf8;p=jalview.git JAL-2465 fix to prevent files loaded from the system's temporary directory from being included in recently opend files store --- diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index 8b753e6..bd8bc53 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -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";