From 71577b1d0021a299d698dd25833a246bf7bffec2 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 21 Feb 2009 14:38:35 -0500 Subject: [PATCH] BUG: make sure the gui still runs... --- Source/QtDialog/CMakeSetup.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 17d27c2f7..e78b68684 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -70,7 +70,7 @@ int main(int argc, char** argv) // check docs first so that X is not need to get docs // do docs, if args were given cmDocumentation doc; - if(doc.CheckOptions(argc, argv)) + if(argc >1 && doc.CheckOptions(argc, argv)) { // Construct and print requested documentation. cmake hcm;