diff -r 2666d9724c76 -r d4f567ce2e7c phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimCmd.cpp --- 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);