From: jprocter Date: Tue, 3 Nov 2009 15:27:18 +0000 (+0000) Subject: pasted file contents should never be added to the recent URL or recent file list. X-Git-Tag: Release_2_5~166 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=de7859967142368e8d4df9a676c042eaa272e795;p=jalview.git pasted file contents should never be added to the recent URL or recent file list. --- diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index f53cd88..d445569 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";