homescreenapp/hsutils/src/xqaiwgetimageclient.cpp
changeset 61 2b1b11a301d2
parent 60 30f14686fb04
--- a/homescreenapp/hsutils/src/xqaiwgetimageclient.cpp	Wed Jun 23 18:03:36 2010 +0300
+++ b/homescreenapp/hsutils/src/xqaiwgetimageclient.cpp	Tue Jul 06 14:06:53 2010 +0300
@@ -43,7 +43,8 @@
 // ---------------------------------------------------------------------------
 //
 XQAIWGetImageClient::XQAIWGetImageClient():
-    mImageGrid(0)
+    mImageGrid(0),
+    mCurrentView(0)
 {
     mImageGrid = new HsImageGridWidget(QStringList(), 0);
     mBackAction = new HbAction(Hb::BackNaviAction, this);
@@ -114,6 +115,7 @@
 
     connect(mImageGrid, SIGNAL(imageSelected(QString)), SLOT(imageSelected(QString)));
 
+    mCurrentView = window->currentView();
     window->addView(mImageGrid);
     window->setCurrentView(mImageGrid, false);
 
@@ -150,7 +152,8 @@
 
     HbMainWindow *window = HbInstance::instance()->allMainWindows().first();
     window->removeView(mImageGrid);
-    
+    window->setCurrentView(mCurrentView, false);
+    mCurrentView = 0;
     emit fetchFailed(-1, QString("")); //KErrNotFound
 
     QStringList images;