Stop loading must be before JOptionPane, 1.5 bug
authoramwaterhouse <Andrew Waterhouse>
Mon, 14 Aug 2006 15:11:12 +0000 (15:11 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 14 Aug 2006 15:11:12 +0000 (15:11 +0000)
src/jalview/gui/Jalview2XML.java

index d6a0112..1f2cbb1 100755 (executable)
@@ -820,6 +820,9 @@ public class Jalview2XML
         }\r
         catch(java.net.UnknownHostException ex)\r
         {\r
+          if (Desktop.instance != null)\r
+            Desktop.instance.stopLoading();\r
+\r
           ex.printStackTrace();\r
           System.err.println("Couldn't locate Jalview XML file : " +\r
               ex + "\n");\r
@@ -831,6 +834,9 @@ public class Jalview2XML
         }\r
         catch (Exception ex)\r
         {\r
+          if (Desktop.instance != null)\r
+            Desktop.instance.stopLoading();\r
+\r
           //Is Version 1 Jar file?\r
           af =  new Jalview2XML_V1().LoadJalviewAlign(file);\r
 \r