From: dmv Date: Wed, 24 Nov 2010 09:57:42 +0000 (+0000) Subject: correct previous integration X-Git-Tag: DIAGRAM_0_1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f4345cc25d2ec6c43d5ed7ab98298707fd5451f;p=modules%2Fgui.git correct previous integration --- 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.*/