diff -r 6b5524b4f673 -r 38bb213f60ba phonebookui/Phonebook2/UIControls/src/cpbk2contacteditornewowncontact.cpp --- a/phonebookui/Phonebook2/UIControls/src/cpbk2contacteditornewowncontact.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/phonebookui/Phonebook2/UIControls/src/cpbk2contacteditornewowncontact.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -224,15 +224,16 @@ { PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING ( "CPbk2ContactEditorNewOwnContact::HandleIdleDelete(0x%x)" ), this ); - iInputAbsorber->StopWait(); - // Notify client asynchronously to let Delete Operation complete firstly and - // then the client will be notified to do the other things in the RunL() function. - iLatestResult.iExtension = NULL; - iLatestResult.iStoreContact = NULL; - iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete; - TRequestStatus* status = &iStatus; - User::RequestComplete(status, KErrNone); - SetActive(); + + iInputAbsorber->StopWait(); + MPbk2ContactEditorEventObserver* observer = iObserver; + iObserver = NULL; + MVPbkContactObserver::TContactOpResult result; + // Disable warnings by nulling the data members + result.iStoreContact = NULL; + result.iExtension = NULL; + result.iOpCode = MVPbkContactObserver::EContactDelete; + observer->ContactEditorOperationCompleted( result, iEditorParams ); } // --------------------------------------------------------------------------