From: hansonr Date: Tue, 15 Oct 2019 09:06:42 +0000 (-0400) Subject: JAL-3437 Desktop File...Load Project fails in JalviewJS X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FJAL-3437_load_project;p=jalview.git JAL-3437 Desktop File...Load Project fails in JalviewJS - just needed to use the File object rather than the file name in the call to Jalview2XML.loadJalviewAlign --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 1899bd3..8b12ca8 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -1873,7 +1873,7 @@ public class Desktop extends GDesktop { try { - new Jalview2XML().loadJalviewAlign(choice); + new Jalview2XML().loadJalviewAlign(selectedFile); } catch (OutOfMemoryError oom) { new OOMWarning("Whilst loading project from " + choice, oom);