From: amwaterhouse Date: Thu, 7 Jul 2005 10:22:50 +0000 (+0000) Subject: Runs if no files to open and -nodisplay is not used X-Git-Tag: Release_2_01~18 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f4f2089f39304cb43e4a07e792aceecd80e7256c;hp=3402d066dbd7667cd805e6d78ac5eca66e237c72;p=jalview.git Runs if no files to open and -nodisplay is not used --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index f05b394..395875c 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -132,10 +132,12 @@ public class Jalview } + if (!aparser.contains("nodisplay")) + desktop.setVisible(true); file = aparser.getValue("open"); - if (file == null) + if (file == null && !desktop.isVisible()) { System.out.println("No files to open!"); System.exit(1); @@ -149,9 +151,6 @@ public class Jalview } } - if (!aparser.contains("nodisplay")) - desktop.setVisible(true); - protocol = "File"; if (file.indexOf("http:") > -1)