git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pasted file contents should never be added to the recent URL or recent file list.
[jalview.git]
/
src
/
jalview
/
io
/
FileLoader.java
diff --git
a/src/jalview/io/FileLoader.java
b/src/jalview/io/FileLoader.java
index
bc76e42
..
06c31a4
100755
(executable)
--- 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();
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";
String type = protocol.equals(FormatAdapter.FILE) ? "RECENT_FILE"
: "RECENT_URL";