--- 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