From 4e486a5e888bc3844a94f27480e3383a5b4be005 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 26 May 2017 15:27:16 +0100 Subject: [PATCH] JAL-2465 Improvement to re-instate storing recently opened URLs for alignments loaded from a structure format via URL --- src/jalview/io/FileLoader.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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) { -- 1.7.10.2