phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimCmd.cpp
branchRCL_3
changeset 58 d4f567ce2e7c
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
57:2666d9724c76 58:d4f567ce2e7c
   297 TInt CPsu2CopyToSimCmd::RunError(TInt aError)
   297 TInt CPsu2CopyToSimCmd::RunError(TInt aError)
   298     {
   298     {
   299     PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING
   299     PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING
   300         ( "CPsu2CopyToSimCmd::RunError %d" ), aError );
   300         ( "CPsu2CopyToSimCmd::RunError %d" ), aError );
   301     CCoeEnv::Static()->HandleError(aError);
   301     CCoeEnv::Static()->HandleError(aError);
       
   302     
       
   303     // If the copy operation is cancelled due to error occurred, update the 
       
   304     // ui control and reset the command pointer before it is destructed.
       
   305     if ( iNameListUiControl )
       
   306         {
       
   307         iNameListUiControl->UpdateAfterCommandExecution();
       
   308         }
   302     if ( iCommandObserver )
   309     if ( iCommandObserver )
   303         {
   310         {
   304         iCommandObserver->CommandFinished(*this);
   311         iCommandObserver->CommandFinished(*this);
   305         }
   312         }
   306     return KErrNone;
   313     return KErrNone;