ginebra2/mostvisitedpageview.cpp
changeset 10 232fbd5a2dcb
parent 6 1c3b8676e58c
child 15 73c48011b8c7
--- a/ginebra2/mostvisitedpageview.cpp	Tue Jul 06 14:03:49 2010 +0300
+++ b/ginebra2/mostvisitedpageview.cpp	Wed Aug 18 09:37:05 2010 +0300
@@ -27,6 +27,8 @@
 #include "webpagecontroller.h"
 #include "BookmarksManager.h"
 #include "webpagedata.h"
+#include "wrtbrowsercontainer.h"
+#include "wrtbrowsercontainer_p.h"
 
 const int KLinearSnippetHeight = 120;
 
@@ -43,6 +45,7 @@
     m_mostVisitedPageStore = new MostVisitedPageStore();
     WebPageController* pageController = WebPageController::getSingleton();
     connect(pageController, SIGNAL(loadFinished(const bool)), this, SLOT(onLoadFinished(const bool)));
+    connect(pageController, SIGNAL(loadFinishedForBackgroundWindow(const bool, WRT::WrtBrowserContainer*)), this, SLOT(onLoadFinishedForBackgroundWindow(const bool, WRT::WrtBrowserContainer*)));
     connect(WRT::BookmarksManager::getSingleton(),SIGNAL(historyCleared()),this,SLOT(clearMVStore()));
 }
 
@@ -219,6 +222,13 @@
         updateMVStore(activePage);
      }
  }
+ void MostVisitedPagesWidget::onLoadFinishedForBackgroundWindow(const bool ok, WRT::WrtBrowserContainer *page)
+ {
+     if (ok) {
+         if (page)
+		     updateMVStore(page);
+     }
+ }
 
 void MostVisitedPagesWidget::clearMVStore()
 {