calendarui/controller/src/calendeleteui.cpp
branchRCL_3
changeset 28 96907930389d
parent 15 9711e452b5e9
child 29 12af337248b1
--- 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 <calcalendarinfo.h>
 #include <calentoolbar.h>
 #include <akntoolbar.h>
-#include <CalenAttachmentModel.h>
+#include <calenattachmentmodel.h>
 
 #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 )