From 3eb9fed8f3a1a4ea8dfa082b2ac1870bbad12a20 Mon Sep 17 00:00:00 2001 From: ana Date: Wed, 2 Feb 2011 13:30:01 +0000 Subject: [PATCH] Fix for the Bug IPAL22178: Preferences for modules are not available in some cases --- src/LightApp/LightApp_Application.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.2