diff -r 38571fd2a704 -r 0f07cd1b5772 calendarui/globaldata/src/calenglobaldata.cpp --- a/calendarui/globaldata/src/calenglobaldata.cpp Fri Mar 12 15:42:35 2010 +0200 +++ b/calendarui/globaldata/src/calenglobaldata.cpp Mon Mar 15 12:40:18 2010 +0200 @@ -54,6 +54,8 @@ _LIT( KExtCalendar,"Ext calendar" ); const TInt KBuffLength = 24; +_LIT(KPhoneCalendarName,"PhoneCalendar"); + // ============================ MEMBER FUNCTIONS =============================== // ----------------------------------------------------------------------------- @@ -1469,9 +1471,17 @@ { TRACE_ENTRY_POINT; - for(TInt index=0;indexFileNameL(); + TPtrC calendarNamePtr = iCalendarInfoList[index]->NameL(); + + //We dont want default calendar PhoneCalendar tobe shown in calendarui. + if(fileNamePtr.CompareF(KCalendarDatabaseFilePath) + && calendarNamePtr.CompareF(KPhoneCalendarName)) + { + aCalendarInfoList.AppendL(iCalendarInfoList[index]); + } } TRACE_EXIT_POINT;