diff -r aba12c885d83 -r 96907930389d calendarui/controller/src/calendeleteui.cpp --- a/calendarui/controller/src/calendeleteui.cpp Thu Jul 15 18:37:27 2010 +0300 +++ b/calendarui/controller/src/calendeleteui.cpp Thu Aug 19 09:53:43 2010 +0300 @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include "calendarui_debug.h" // Debug #include "calendeleteui.h" @@ -950,6 +950,11 @@ CalenActionUiUtils::EDeleteEntry ); if( doDelete ) { + //Before deleteing the attachment, reset the attachment model + if(iController.Services().GetAttachmentData()->NumberOfItems()) + { + iController.Services().GetAttachmentData()->Reset(); + } aEntryView->DeleteL( *aEntry ); if( aEntry )