diff -r 6b5524b4f673 -r 38bb213f60ba phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp --- a/phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -21,7 +21,7 @@ #include "CPbk2ContactEditorNewContact.h" // Phonebook 2 -#include +#include #include #include #include "CPbk2InputAbsorber.h" @@ -224,14 +224,14 @@ ( "CPbk2ContactEditorNewContact::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(); + 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 ); } // --------------------------------------------------------------------------