mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp
branchRCL_3
changeset 33 94cccd85bd25
parent 29 7e4e4bcc75b6
child 53 696bfeff199e
equal deleted inserted replaced
29:7e4e4bcc75b6 33:94cccd85bd25
  3563     
  3563     
  3564     SetKeyEventFlags(0);    
  3564     SetKeyEventFlags(0);    
  3565     CleanupStack::PushL( TCleanupItem( DisableSendKey, this ) );
  3565     CleanupStack::PushL( TCleanupItem( DisableSendKey, this ) );
  3566     // add to current control or To control
  3566     // add to current control or To control
  3567     TBool addressesAdded(EFalse);
  3567     TBool addressesAdded(EFalse);
  3568     TRAP_IGNORE( addressesAdded = iHeader->AddRecipientL(  iView->FocusedControl(), 
  3568     TRAPD( err, addressesAdded = iHeader->AddRecipientL(  iView->FocusedControl(), 
  3569                                                     iView, 
  3569                                                     iView, 
  3570                                                     AcceptEmailAddresses(),
  3570                                                     AcceptEmailAddresses(),
  3571                                                     invalid ));
  3571                                                     invalid ) );
  3572     
  3572     if( err == KLeaveExit )
       
  3573         {
       
  3574         CAknEnv::RunAppShutter();
       
  3575         }
       
  3576 
  3573     CleanupStack::PopAndDestroy(2);//DisableSendKey,UpdateFixedToolbar
  3577     CleanupStack::PopAndDestroy(2);//DisableSendKey,UpdateFixedToolbar
  3574     iEditorFlags &= ~EMsgEditInProgress;
  3578     iEditorFlags &= ~EMsgEditInProgress;
  3575 
  3579 
  3576     TInt focused = iHeader->FocusedAddressField( iView->FocusedControl() );
  3580     TInt focused = iHeader->FocusedAddressField( iView->FocusedControl() );
  3577 
  3581