calendarui/commonutils/src/calenactionuiutils.cpp
branchRCL_3
changeset 5 42814f902fe6
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
0:f979ecb2b13e 5:42814f902fe6
   417     // For instances finishing the next day (now possible with unified DateTime editor),
   417     // For instances finishing the next day (now possible with unified DateTime editor),
   418     // we have to do our best to match the instance time exactly - otherwise we could
   418     // we have to do our best to match the instance time exactly - otherwise we could
   419     // match the LocalUid to the incorrect instance in a series.
   419     // match the LocalUid to the incorrect instance in a series.
   420     for ( TInt i=0; i < instances.Count() && !result; ++i )
   420     for ( TInt i=0; i < instances.Count() && !result; ++i )
   421         {
   421         {
   422         if( instances[i]->Entry().LocalUidL() == aId.iEntryLocalUid )
   422         if( (instances[i]->InstanceIdL().iCollectionId == aId.iColId) && (instances[i]->Entry().LocalUidL() == aId.iEntryLocalUid )) // comparing the collection id and Local Uid 
   423             {
   423             {
   424             // Check the instance time matches.
   424             // Check the instance time matches.
   425             if( instances[i]->StartTimeL().TimeLocalL() == aId.iInstanceTime )
   425             if( instances[i]->StartTimeL().TimeLocalL() == aId.iInstanceTime )
   426                 {
   426                 {
   427                 result = instances[i];
   427                 result = instances[i];