securitydialogs/SecUi/Src/SecUiAutoLockSettingPage.cpp
branchRCL_3
changeset 7 6e226572c5f0
parent 0 164170e6151a
child 10 bbcfd14ce6a7
--- a/securitydialogs/SecUi/Src/SecUiAutoLockSettingPage.cpp	Fri Feb 19 23:42:03 2010 +0200
+++ b/securitydialogs/SecUi/Src/SecUiAutoLockSettingPage.cpp	Fri Mar 12 15:46:51 2010 +0200
@@ -51,7 +51,6 @@
 
 	{
         iOriginalIndex = aCurrentSelectionItem;
-	iPrevSelectionItem = aCurrentSelectionItem;
 	}
 
 //
@@ -168,10 +167,7 @@
          	//only take into account the "Up" event. Otherwise we'll end up having 2 dialogs.
          	if(aPointerEvent.iType == TPointerEvent::EButton1Up)
          	{
-		if(iPrevSelectionItem!=cur)
-			iPrevSelectionItem=cur;
-		else
-         	{
+
          	    //only react to the event if the pen is actually inside the dialog.
          	    if(ListBoxControl()->Rect().Contains(aPointerEvent.iPosition))
          	        {
@@ -213,7 +209,6 @@
 		    }
          	}
         }
-    }
 //
 // ---------------------------------------------------------
 // CAutolockQuery::CAutolockQuery()