calendarui/views/src/caleneventview.cpp
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
child 30 d68a4b5d5885
--- a/calendarui/views/src/caleneventview.cpp	Fri Mar 12 15:42:35 2010 +0200
+++ b/calendarui/views/src/caleneventview.cpp	Mon Mar 15 12:40:18 2010 +0200
@@ -37,6 +37,7 @@
 #include "calendar.hrh"
 #include <finditem.hrh>
 #include <finditemmenu.h>
+#include "calenattachmentmodel.h" 
 
 // Button position of the MSK CBA button
 const TInt KSK2CBAPosition = 2;
@@ -280,7 +281,12 @@
 void CCalenEventView::DoDeactivateImpl()
     {
     TRACE_ENTRY_POINT;
-    
+    // After forced exit need to Reset CCalenAttachmentModel 
+    //to refresh the model after opening the calender next time
+    if (iServices.GetAttachmentData()->NumberOfItems()) 
+        {
+        iServices.GetAttachmentData()->Reset();
+        }
     iPreviousViewId.iViewUid = KNullUid;
 
     // Remove the toolbar buttons for event viewer before exiting from event view