calendarui/controller/src/calenbackgroundstate.cpp
branchCompilerCompatibility
changeset 11 7d78dc22f397
parent 5 42814f902fe6
child 21 9711e452b5e9
--- a/calendarui/controller/src/calenbackgroundstate.cpp	Mon Mar 08 21:43:23 2010 +0000
+++ b/calendarui/controller/src/calenbackgroundstate.cpp	Sun Mar 14 13:09:26 2010 +0000
@@ -165,7 +165,14 @@
         {
         case ECalenNotifyAppForegrounded:
         	{
-        	SetCurrentState( aStateMachine, iPreviousState );
+        	if( iPreviousState == CCalenStateMachine::ECalenSendingState )
+        	    {
+        	    SetCurrentState( aStateMachine, CCalenStateMachine::ECalenIdleState );
+        	    }
+        	else
+        	    {
+                SetCurrentState( aStateMachine, iPreviousState );
+        	    }
         	// We set iOutstandingNotifications for two reasons.
         	// 1. The new state i.e. the state we are moving back can have notification info.
         	// 2. When we move to newstate we broadcast all notification from iOutstandingNotifications