equal
deleted
inserted
replaced
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(); |