From db8caac49ea663fbc2b8b78f7eb2e6ae893f40da Mon Sep 17 00:00:00 2001 From: hansonr Date: Thu, 24 Jan 2019 07:13:30 -0600 Subject: [PATCH] adds File..Load Project file for JS --- src/jalview/gui/Desktop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.2