adds File..Load Project file for JS
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 24 Jan 2019 13:13:30 +0000 (07:13 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 24 Jan 2019 13:13:30 +0000 (07:13 -0600)
src/jalview/gui/Desktop.java

index 144cdd0..f1b8025 100644 (file)
@@ -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)
             {