calendarui/editors/src/CalenEntryUpdater.cpp
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
12:38571fd2a704 13:0f07cd1b5772
   351     
   351     
   352     //Set the collection id here for temp instanceId and set it to context
   352     //Set the collection id here for temp instanceId and set it to context
   353     TCalenInstanceId instanceIdTemp = iServices.Context().InstanceId();
   353     TCalenInstanceId instanceIdTemp = iServices.Context().InstanceId();
   354     instanceIdTemp.iColId = colId;
   354     instanceIdTemp.iColId = colId;
   355     instanceIdTemp.iType = aEditedEntry.EntryTypeL();
   355     instanceIdTemp.iType = aEditedEntry.EntryTypeL();
   356     if( aNewInstanceStartDate.TimeLocalL() != aOrigInstanceDate.TimeLocalL() )
   356     
       
   357     if (aNewInstanceStartDate.TimeLocalL() != aOrigInstanceDate.TimeLocalL()
       
   358             || instanceIdTemp.iInstanceTime <= 0)
   357         {
   359         {
   358         instanceIdTemp.iInstanceTime = aNewInstanceStartDate.TimeLocalL();
   360         instanceIdTemp.iInstanceTime = aNewInstanceStartDate.TimeLocalL();
   359         }
   361         }
   360     iServices.Context().SetInstanceIdL(instanceIdTemp,iServices.Context().ViewId());
   362     iServices.Context().SetInstanceIdL(instanceIdTemp,iServices.Context().ViewId());
   361     TBool isChild( aOrigEntry.RecurrenceIdL().TimeUtcL() != Time::NullTTime() );
   363     TBool isChild( aOrigEntry.RecurrenceIdL().TimeUtcL() != Time::NullTTime() );