From 040bf538f37c579a61105b2c94bee7eb0c528486 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 3 Nov 2009 15:27:19 +0000 Subject: [PATCH] pasted file contents should never be added to the recent URL or recent file list. --- src/jalview/io/FileLoader.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index bc76e42..06c31a4 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -173,7 +173,11 @@ public class FileLoader implements Runnable public void updateRecentlyOpened() { Vector recent = new Vector(); - + if (protocol.equals(FormatAdapter.PASTE)) + { + // do nothing if the file was pasted in as text... there is no filename to refer to it as. + return; + } String type = protocol.equals(FormatAdapter.FILE) ? "RECENT_FILE" : "RECENT_URL"; -- 1.7.10.2