From 10eedfb43dacd4cf32d4b5fe27d8d5987c70eaf8 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 26 May 2017 14:48:44 +0100 Subject: [PATCH] JAL-2465 fix to prevent files loaded from the system's temporary directory from being included in recently opend files store --- src/jalview/io/FileLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"; -- 1.7.10.2