From: ana Date: Wed, 2 Feb 2011 13:30:01 +0000 (+0000) Subject: Fix for the Bug IPAL22178: Preferences for modules are not available in some cases X-Git-Tag: V6_3_0a1~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3eb9fed8f3a1a4ea8dfa082b2ac1870bbad12a20;p=modules%2Fgui.git Fix for the Bug IPAL22178: Preferences for modules are not available in some cases --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 2ba5cf62d..e5978a660 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1795,7 +1795,7 @@ LightApp_Preferences* LightApp_Application::preferences( const bool crt ) const connect( myPrefs, SIGNAL( preferenceChanged( QString&, QString&, QString& ) ), this, SLOT( onPreferenceChanged( QString&, QString&, QString& ) ) ); - if ( !toCreate ) + if ( !crt ) return myPrefs; SUIT_ResourceMgr* resMgr = resourceMgr(); @@ -1815,7 +1815,7 @@ LightApp_Preferences* LightApp_Application::preferences( const bool crt ) const for ( QStringList::const_iterator it = modNameList.begin(); it != modNameList.end(); ++it ) { - if ( !app->isLibExists( *it ) ) + if ( !app->isLibExists( *it ) || _prefs_->hasModule( *it ) ) continue; int modId = _prefs_->addPreference( *it );