calendarui/controller/src/calenviewmanager.cpp
branchRCL_3
changeset 13 1984aceb8774
parent 0 f979ecb2b13e
child 14 21239b3bcd78
--- a/calendarui/controller/src/calenviewmanager.cpp	Mon Mar 15 12:40:18 2010 +0200
+++ b/calendarui/controller/src/calenviewmanager.cpp	Wed Mar 31 21:29:10 2010 +0300
@@ -891,8 +891,10 @@
 		}
 	
 	// set the previous view id
-	iPreviousViewId.iViewUid = cachePreviousViewId;
-	
+	if(cachePreviousViewId != KUidCalenEventView) 
+	    {
+        iPreviousViewId.iViewUid = cachePreviousViewId; 
+	    }	
 	TRACE_EXIT_POINT;
     }
 
@@ -1514,7 +1516,14 @@
         // the event view 
         if(iPreviousViewId.iViewUid != KNullUid)
             {
-            RequestActivationL(iPreviousViewId.iViewUid);   
+            if(iPreviousToDayView.iViewUid != KNullUid)
+                {
+                RequestActivationL(iPreviousViewId.iViewUid, KUidCalenShowBackCba);
+                }
+            else
+                {
+                RequestActivationL(iPreviousViewId.iViewUid);
+                }
             }
         }
     else