LightApp_Application* that = (LightApp_Application*)this;
bool toCreate = !_prefs_ && crt;
- if( toCreate )
+ if ( toCreate )
{
_prefs_ = new LightApp_Preferences( resourceMgr() );
that->createPreferences( _prefs_ );
that->myPrefs = _prefs_;
+ if ( !toCreate )
+ return myPrefs;
+
SUIT_ResourceMgr* resMgr = resourceMgr();
QList<SUIT_Application*> appList = SUIT_Session::session()->applications();
if ( mod && !_prefs_->hasModule( mod->moduleName() ) )
{
_prefs_->addPreference( mod->moduleName() );
- if( toCreate )
- mod->createPreferences();
+ mod->createPreferences();
that->emptyPreferences( mod->moduleName() );
}
}
if ( !item || !item->isEmpty() )
return;
+ printf( "---------------------> Modify for empty module.\n" );
+
QtxPagePrefFrameItem* frm = new QtxPagePrefFrameItem( item->title(), item->parentItem() );
frm->setIcon( item->icon() );
frm->setStretch( false );