calendarui/controller/src/caleneditui.cpp
branchRCL_3
changeset 21 9711e452b5e9
parent 12 38571fd2a704
child 27 55d60436f00b
equal deleted inserted replaced
20:21239b3bcd78 21:9711e452b5e9
   150         
   150         
   151             {
   151             {
   152             TUid currentView = iController.ViewManager().CurrentView();
   152             TUid currentView = iController.ViewManager().CurrentView();
   153             if( KUidCalenTodoView == currentView )
   153             if( KUidCalenTodoView == currentView )
   154                 {
   154                 {
   155                 // Open NewEntry as "To-Do", if editor is launched from To-Do view. 
   155                 // Open NewEntry as "To-Do", if editor is launched from To-Do view.
       
   156                 MCalenContext& context = iController.Services().Context();
       
   157                 // Set the date on the context to today.
       
   158                 TTime homeTime;
       
   159                 homeTime.HomeTime();
       
   160                 TCalTime today;
       
   161                 today.SetTimeLocalL( homeTime );
       
   162                 context.SetFocusDateL( today, TVwsViewId( KUidCalendar, KUidCalenTodoView ) );
   156                 EditNewEntryL( CCalEntry::ETodo );
   163                 EditNewEntryL( CCalEntry::ETodo );
   157                 }
   164                 }
   158             else
   165             else
   159                 {
   166                 {
   160                 EditNewEntryL();
   167                 EditNewEntryL();