From: tcofoegbu Date: Fri, 26 May 2017 14:27:16 +0000 (+0100) Subject: JAL-2465 Improvement to re-instate storing recently opened URLs for alignments loaded... X-Git-Tag: Release_2_10_2~3^2~57^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4e486a5e888bc3844a94f27480e3383a5b4be005;p=jalview.git JAL-2465 Improvement to re-instate storing recently opened URLs for alignments loaded from a structure format via URL --- diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index bd8bc53..b7629c4 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -345,12 +345,16 @@ public class FileLoader implements Runnable String tempStructureFileStr = createNamedJvTempFile( urlLeafName, structExt); UrlDownloadClient.download(file, tempStructureFileStr); - file = tempStructureFileStr; - protocol = DataSourceType.FILE; + al = fa.readFile(tempStructureFileStr, DataSourceType.FILE, + format); + source = fa.getAlignFile(); + } + else + { + al = fa.readFile(file, protocol, format); + source = fa.getAlignFile(); // keep reference for later if + // necessary. } - al = fa.readFile(file, protocol, format); - source = fa.getAlignFile(); // keep reference for later if - // necessary. } } catch (java.io.IOException ex) {