From: amwaterhouse Date: Mon, 27 Nov 2006 16:23:46 +0000 (+0000) Subject: Cant save to a URL loaded Jar file X-Git-Tag: Release_2_2~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f09f33647e90a6376ffcf096d003afa59f2b41fc;p=jalview.git Cant save to a URL loaded Jar file --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index be428fe..f483d6f 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -153,8 +153,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener { fileName = file; currentFileFormat = format; - if (!fileName.startsWith("http")) - reload.setEnabled(true); + reload.setEnabled(true); } void addKeyListener() @@ -619,7 +618,10 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener public void save_actionPerformed(ActionEvent e) { - if(fileName==null || currentFileFormat==null) + if(fileName==null + || currentFileFormat==null + || fileName.startsWith("http") + ) saveAs_actionPerformed(null); else saveAlignment(fileName, currentFileFormat);