phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimCmd.cpp
branchRCL_3
changeset 18 d4f567ce2e7c
parent 0 e686773b3f54
--- a/phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimCmd.cpp	Thu Jul 15 18:22:55 2010 +0300
+++ b/phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimCmd.cpp	Thu Aug 19 09:41:07 2010 +0300
@@ -299,6 +299,13 @@
     PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING
         ( "CPsu2CopyToSimCmd::RunError %d" ), aError );
     CCoeEnv::Static()->HandleError(aError);
+    
+    // If the copy operation is cancelled due to error occurred, update the 
+    // ui control and reset the command pointer before it is destructed.
+    if ( iNameListUiControl )
+        {
+        iNameListUiControl->UpdateAfterCommandExecution();
+        }
     if ( iCommandObserver )
         {
         iCommandObserver->CommandFinished(*this);