phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp
branchRCL_3
changeset 9 0d28c1c5b6dd
parent 5 81f8547efd4f
child 12 4ae315f230bc
--- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp	Wed Apr 14 15:45:35 2010 +0300
+++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercontacthandler.cpp	Tue Apr 27 16:23:35 2010 +0300
@@ -376,24 +376,26 @@
                 CCACOMMLAUNCHER_ROMARRAY_SIZE( KCCAppCommLauncherVoiceCallGroup )); 
             break;
         case VPbkFieldTypeSelectorFactory::EUniEditorSelector: 
-        	 TInt flags = 0;
-        	 CRepository* key = CRepository::NewL(TUid::Uid(KCRUidPhonebook));
-        	 TInt err = key->Get(KPhonebookLocalVariationFlags, flags);
+            {
+            TInt flags = 0;
+            CRepository* key = CRepository::NewL( TUid::Uid( KCRUidPhonebook ) );
+            TInt err = key->Get( KPhonebookLocalVariationFlags, flags );
         	            
-        	 if ( flags & EVPbkLVShowEmailInSendMsg)
-        		 {
-        		 isMatch = FieldArrayAndContactActionMatch( 
-        		          aContactField, KCCAppCommLauncherMessageEmailGroup, 
-        		          CCACOMMLAUNCHER_ROMARRAY_SIZE( KCCAppCommLauncherMessageEmailGroup ));
-        		 }
-        	 else
-        		 {       	
-        		 isMatch = FieldArrayAndContactActionMatch( 
-        				 aContactField, KCCAppCommLauncherMessageGroup, 
-        				 CCACOMMLAUNCHER_ROMARRAY_SIZE( KCCAppCommLauncherMessageGroup )); 
-        		 }
-        	 delete key;
-        	 break;
+            if ( flags & EVPbkLVShowEmailInSendMsg )
+                {
+                isMatch = FieldArrayAndContactActionMatch( 
+                    aContactField, KCCAppCommLauncherMessageEmailGroup, 
+                    CCACOMMLAUNCHER_ROMARRAY_SIZE( KCCAppCommLauncherMessageEmailGroup ) );
+                }
+            else
+                {       	
+                isMatch = FieldArrayAndContactActionMatch( 
+                    aContactField, KCCAppCommLauncherMessageGroup, 
+                    CCACOMMLAUNCHER_ROMARRAY_SIZE( KCCAppCommLauncherMessageGroup ) ); 
+                }
+            delete key;
+            }
+            break;
         case VPbkFieldTypeSelectorFactory::EEmailEditorSelector:        
             isMatch = FieldArrayAndContactActionMatch( 
                 aContactField, KCCAppCommLauncherEmailGroup,