gssettingsuis/Gs/GSApplication/Src/GSMainView.cpp
branchRCL_3
changeset 8 f62c3a3d66b8
parent 2 051d34a3f367
child 13 23553eb4e470
--- a/gssettingsuis/Gs/GSApplication/Src/GSMainView.cpp	Tue Feb 02 00:22:03 2010 +0200
+++ b/gssettingsuis/Gs/GSApplication/Src/GSMainView.cpp	Fri Feb 19 23:06:10 2010 +0200
@@ -132,6 +132,10 @@
         iAppUi->RemoveFromViewStack( *this, iContainer );
         delete iContainer;
         }
+    if (iPosition.Count() > 0)
+		{
+		iPosition.Close();
+		}
     }
 
 
@@ -203,15 +207,15 @@
     
     // Do this to update listbox from already existing iPluginArray.
     iContainer->UpdateListBoxL();
-    if (position.Count() > 0)
+    if (iPosition.Count() > 0)
 		{
 		if (iScreenMode == Layout_Meta_Data::IsLandscapeOrientation())
 			{
-			iContainer->SetPosition(position, EFalse);
+			iContainer->SetPosition(iPosition, EFalse);
 			}
 		else
 			{
-			iContainer->SetPosition(position, ETrue);
+			iContainer->SetPosition(iPosition, ETrue);
 			}
 		}
     iAppUi->AddToViewStackL( *this, iContainer );
@@ -239,11 +243,11 @@
     
     if ( iContainer )
         {
-		if (position.Count() > 0)
+		if (iPosition.Count() > 0)
 			{
-			position.Reset();
+			iPosition.Reset();
 			}
-		TRAPD(err, iContainer->GetPositionL(position));
+		TRAPD(err, iContainer->GetPositionL(iPosition));
 		iScreenMode = Layout_Meta_Data::IsLandscapeOrientation();
 		iAppUi->RemoveFromViewStack(*this, iContainer);
         delete iContainer;