From: hansonr Date: Thu, 24 Jan 2019 13:13:30 +0000 (-0600) Subject: adds File..Load Project file for JS X-Git-Tag: Release_2_11_4_0~45^2~18^2~294 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=db8caac49ea663fbc2b8b78f7eb2e6ae893f40da;p=jalview.git adds File..Load Project file for JS --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 144cdd0..f1b8025 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -1748,7 +1748,7 @@ public class Desktop extends jalview.jbgui.GDesktop { File selectedFile = chooser.getSelectedFile(); setProjectFile(selectedFile); - final String choice = selectedFile.getAbsolutePath(); + String choice = selectedFile.getAbsolutePath(); Cache.setProperty("LAST_DIRECTORY", selectedFile.getParent()); new Thread(new Runnable() { @@ -1762,7 +1762,7 @@ public class Desktop extends jalview.jbgui.GDesktop } else { - new jalview.project.Jalview2XML().loadJalviewAlign(choice); + new jalview.project.Jalview2XML().loadJalviewAlign(selectedFile); } } catch (OutOfMemoryError oom) {