phonebookui/Phonebook2/CommandsExtension/src/CPbk2RemoveSpeedDialCmd.cpp
branchRCL_3
changeset 6 e8e3147d53eb
parent 0 e686773b3f54
equal deleted inserted replaced
5:81f8547efd4f 6:e8e3147d53eb
   253         }
   253         }
   254     else if (aResult.iOpCode == EContactLock)
   254     else if (aResult.iOpCode == EContactLock)
   255         {    
   255         {    
   256         TInt index = KErrNotFound;
   256         TInt index = KErrNotFound;
   257         TInt err = KErrNone;
   257         TInt err = KErrNone;
       
   258         
   258         if (iUiControl)
   259         if (iUiControl)
   259             {            
   260             {
   260             // Convert presentation index to store index.
   261             index = iUiControl->FocusedFieldIndex();
   261             TRAP( err, 
       
   262                 index = ToStoreFieldIndexL( iUiControl->FocusedFieldIndex(), 
       
   263                 	iStoreContact ) );
       
   264             }
   262             }
   265 
   263     
   266         if ( index != KErrNotFound )
   264         if ( index != KErrNotFound )
   267             {
   265             {
   268             MVPbkStoreContactField& field = 
   266             MVPbkStoreContactField& field = 
   269                 iStoreContact->Fields().FieldAt( index );            
   267                 iStoreContact->Fields().FieldAt( index );            
   270 
   268 
   403     TBool hasAttribute(EFalse);
   401     TBool hasAttribute(EFalse);
   404 
   402 
   405     const MVPbkStoreContact* storeContact =
   403     const MVPbkStoreContact* storeContact =
   406             iUiControl->FocusedStoreContact();
   404             iUiControl->FocusedStoreContact();
   407 
   405 
   408     // Convert presentation index to store index.
   406    
   409     TInt index( ToStoreFieldIndexL(
   407     TInt index = iUiControl->FocusedFieldIndex();
   410                     iUiControl->FocusedFieldIndex(),
   408 
   411                     storeContact ) );
       
   412 
   409 
   413     if ( index != KErrNotFound )
   410     if ( index != KErrNotFound )
   414         {
   411         {
   415         const MVPbkStoreContactField& field =
   412         const MVPbkStoreContactField& field =
   416             storeContact->Fields().FieldAt( index );
   413             storeContact->Fields().FieldAt( index );