diff -r 1984aceb8774 -r 21239b3bcd78 calendarui/controller/src/calennotifier.cpp --- a/calendarui/controller/src/calennotifier.cpp Wed Mar 31 21:29:10 2010 +0300 +++ b/calendarui/controller/src/calennotifier.cpp Wed Apr 14 15:55:57 2010 +0300 @@ -101,13 +101,6 @@ iEComWatcher = NULL; } - // Stop database change notifications. - if( iDbChangeNotifier ) - { - delete iDbChangeNotifier; - iDbChangeNotifier = NULL; - } - // Stop settings change notifications if( iCenRepChangeNotifier ) { @@ -170,10 +163,6 @@ iCenRepChangeNotifier = CCenRepNotifyHandler::NewL( *this, *iRepository ); iCenRepChangeNotifier->StartListeningL(); - // Register for changes to our database session - iDbChangeNotifier = CCalenDbChangeNotifier::NewL( *iGlobalData ); - iDbChangeNotifier->RegisterObserverL( *this ); - // Register for changes to the ECom registry iEComWatcher = CCalenEComWatcher::NewL( *this ); @@ -771,6 +760,7 @@ case MCalFileChangeObserver::ECalendarFileCreated: case MCalFileChangeObserver::ECalendarInfoCreated: { + BroadcastNotification(ECalenNotifyDeleteInstanceView); BroadcastNotification(ECalenNotifyCalendarInfoCreated); } break;