calendarui/controller/src/calenstate.cpp
branchRCL_3
changeset 13 1984aceb8774
parent 0 f979ecb2b13e
child 29 12af337248b1
--- a/calendarui/controller/src/calenstate.cpp	Mon Mar 15 12:40:18 2010 +0200
+++ b/calendarui/controller/src/calenstate.cpp	Wed Mar 31 21:29:10 2010 +0300
@@ -128,9 +128,11 @@
         case ECalenNotifyAppBackgrounded:
         	{
         	CCalenStateMachine::TCalenStateIndex cachedState = aStateMachine.GetCurrentState();
-        	if(cachedState != CCalenStateMachine::ECalenMapState) // Never send calendar to background state in MapState as maps will 
-        	                                                        // launched in cahin mode not in stand alone mode
-        	    {
+        	// Never send calendar to background state in MapState as maps will
+        	// launched in cahin mode not in stand alone mode
+        	if((cachedState != CCalenStateMachine::ECalenMapState) &&
+        		(cachedState != CCalenStateMachine::ECalenPopulationState))
+        		{
                 aStateMachine.SetCurrentState(CCalenStateMachine::ECalenBackgroundState);
                 aStateMachine.SetCurrentPreviousState(cachedState);
                 iOutstandingNotifications.InsertL(aNotification);