phonebookui/pbkcommonui/src/cnthistoryview.cpp
changeset 71 7cc7d74059f9
parent 65 ae724a111993
--- a/phonebookui/pbkcommonui/src/cnthistoryview.cpp	Thu Sep 02 20:16:15 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cnthistoryview.cpp	Fri Sep 17 08:27:32 2010 +0300
@@ -152,6 +152,10 @@
         this, SLOT(showClearHistoryMenu()));
     connect(mHistoryModel, SIGNAL(layoutChanged()),
         this, SLOT(updateScrollingPosition()));
+    connect(mHistoryModel, SIGNAL(modelReset()),
+        this, SLOT(updateScrollingPosition()));
+    connect(mHistoryModel, SIGNAL(modelReset()),
+        this, SLOT(showClearHistoryMenu()));
     
     // Connect the menu options to respective slots
     mClearHistory = static_cast<HbAction*>(docLoader()->findObject("cnt:clearhistory"));
@@ -159,10 +163,6 @@
     connect(mClearHistory, SIGNAL(triggered()), this, SLOT(clearHistory()));
     showClearHistoryMenu();
     
-    HbMainWindow* mainWindow = mView->mainWindow();
-    connect(mainWindow, SIGNAL(orientationChanged(Qt::Orientation)), 
-            this, SLOT(updateScrollingPosition()));
-    
     connect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)), 
         this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&)));
 }
@@ -258,7 +258,7 @@
     
         delete mRequest;
         mRequest = NULL;
-        mRequest = appMng.create(interface, operation, false); // not embedded
+        mRequest = appMng.create(interface, operation, true); // embedded
         
         if ( mRequest ) {
             mRequest->setArguments(args);