From 4f4345cc25d2ec6c43d5ed7ab98298707fd5451f Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 24 Nov 2010 09:57:42 +0000 Subject: [PATCH] correct previous integration --- src/LightApp/LightApp_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index a66da96d2..a0ae60221 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -679,7 +679,7 @@ QString LightApp_Application::defaultModule() const int sel = 0; sel = resMgr->integerValue( "Activate", "def_module" ); - return aModuleNames.count() > 1 && sel > 0 ? aModuleNames.at( sel - 1 ) : ( aModuleNames.count() ? aModuleNames.first() : "" ); + return aModuleNames.count() > 1 && sel > 0 ? aModuleNames.at( sel - 1 ) : ( aModuleNames.count() == 1 ? aModuleNames.first() : "" ); } /*!On new window slot.*/ -- 2.39.2