Runs if no files to open and -nodisplay is not used
authoramwaterhouse <Andrew Waterhouse>
Thu, 7 Jul 2005 10:22:50 +0000 (10:22 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 7 Jul 2005 10:22:50 +0000 (10:22 +0000)
src/jalview/bin/Jalview.java

index f05b394..395875c 100755 (executable)
@@ -132,10 +132,12 @@ public class Jalview
 \r
           }\r
 \r
+          if (!aparser.contains("nodisplay"))\r
+            desktop.setVisible(true);\r
 \r
           file = aparser.getValue("open");\r
 \r
-          if (file == null)\r
+          if (file == null && !desktop.isVisible())\r
           {\r
             System.out.println("No files to open!");\r
             System.exit(1);\r
@@ -149,9 +151,6 @@ public class Jalview
             }\r
           }\r
 \r
-          if (!aparser.contains("nodisplay"))\r
-            desktop.setVisible(true);\r
-\r
           protocol = "File";\r
 \r
           if (file.indexOf("http:") > -1)\r