phonebookui/pbkcommonui/src/cnthistoryview.cpp
changeset 65 ae724a111993
parent 59 a642906a277a
child 71 7cc7d74059f9
--- a/phonebookui/pbkcommonui/src/cnthistoryview.cpp	Wed Aug 18 09:39:00 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cnthistoryview.cpp	Thu Sep 02 20:16:15 2010 +0300
@@ -102,7 +102,7 @@
  */
 void CntHistoryView::deactivate()
 {
-    QContactManager* cm = mViewMgr->contactManager(SYMBIAN_BACKEND);
+    QContactManager* cm = &mEngine->contactManager(SYMBIAN_BACKEND);
     disconnect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)),
             this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&)));
 }
@@ -110,12 +110,12 @@
 /**
  * Activate the view
  */
-void CntHistoryView::activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs )
+void CntHistoryView::activate( const CntViewParameters aArgs )
 {
-    mViewMgr = aMgr;
     mArgs = aArgs;
+    mViewMgr = &mEngine->viewManager();
     
-    QContactManager* cm = mViewMgr->contactManager(SYMBIAN_BACKEND);
+    QContactManager* cm = &mEngine->contactManager(SYMBIAN_BACKEND);
     mContact = new QContact(mArgs.value(ESelectedContact).value<QContact>());
     
     // Set history view heading