messagingappbase/mcesettings/mcesettingsgsplugin/src/MceSettingsGSPluginContainer.cpp
branchRCL_3
changeset 25 fa1df4b99609
parent 0 72b543305e3a
--- a/messagingappbase/mcesettings/mcesettingsgsplugin/src/MceSettingsGSPluginContainer.cpp	Thu Jul 15 18:34:37 2010 +0300
+++ b/messagingappbase/mcesettings/mcesettingsgsplugin/src/MceSettingsGSPluginContainer.cpp	Thu Aug 19 09:51:11 2010 +0300
@@ -190,13 +190,15 @@
 
     TUid uid;
     uid.iUid = KMceSettingsCBSUid;
+	if(iCbs)
+	{
+    	HBufC* text = StringLoader::LoadL( R_MCEUI_CBS_SETTINGS_TEXT, iEikonEnv );
+    	TUidNameInfo cbsSettings( uid, *text );
+    	delete text;
+    	iMsgTypesSettings->AppendL( cbsSettings );
+	}
 
-    HBufC* text = StringLoader::LoadL( R_MCEUI_CBS_SETTINGS_TEXT, iEikonEnv );
-    TUidNameInfo cbsSettings( uid, *text );
-    delete text;
-    iMsgTypesSettings->AppendL( cbsSettings );
-
-    text = StringLoader::LoadL( R_MCEUI_GENERAL_SETTINGS_TEXT, iEikonEnv );
+    HBufC* text = StringLoader::LoadL( R_MCEUI_GENERAL_SETTINGS_TEXT, iEikonEnv );
     TUidNameInfo generalSettings( uid, *text );
     delete text;
     iMsgTypesSettings->AppendL( generalSettings );