Cant save to a URL loaded Jar file
authoramwaterhouse <Andrew Waterhouse>
Mon, 27 Nov 2006 16:23:46 +0000 (16:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 27 Nov 2006 16:23:46 +0000 (16:23 +0000)
src/jalview/gui/AlignFrame.java

index be428fe..f483d6f 100755 (executable)
@@ -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);