X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFileLoader.java;fp=src%2Fjalview%2Fio%2FFileLoader.java;h=06c31a46bef6e77572bfddcb0a799ef286692250;hb=040bf538f37c579a61105b2c94bee7eb0c528486;hp=bc76e421f7e992fb1a4d3cf36b8c1c3059294954;hpb=e7b8360caba2400b8b8e8b686f6da785d2853237;p=jalview.git 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";