JAL-3437 Desktop File...Load Project fails in JalviewJS JAL-3437_load_project
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 15 Oct 2019 09:06:42 +0000 (05:06 -0400)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 15 Oct 2019 09:06:42 +0000 (05:06 -0400)
- just needed to use the File object rather than the file name in the
call to Jalview2XML.loadJalviewAlign

src/jalview/gui/Desktop.java

index 1899bd3..8b12ca8 100644 (file)
@@ -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);