From f4f2089f39304cb43e4a07e792aceecd80e7256c Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 7 Jul 2005 10:22:50 +0000 Subject: [PATCH] Runs if no files to open and -nodisplay is not used --- src/jalview/bin/Jalview.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) -- 1.7.10.2