phonebookui/Phonebook2/UIControls/src/CPbk2NamesListReadyState.cpp
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 6 e8e3147d53eb
--- a/phonebookui/Phonebook2/UIControls/src/CPbk2NamesListReadyState.cpp	Tue Feb 02 10:12:17 2010 +0200
+++ b/phonebookui/Phonebook2/UIControls/src/CPbk2NamesListReadyState.cpp	Fri Feb 19 22:40:27 2010 +0200
@@ -1387,10 +1387,11 @@
         const MVPbkContactBookmark& aContactBookmark,
         TBool aSelected )
     {
+    TInt cmdItemCount = CommandItemCount();
     TInt index = iViewStack.IndexOfBookmarkL( aContactBookmark );
     if ( index != KErrNotFound )
         {
-        SetSelectedContactL( index, aSelected );
+        SetSelectedContactL( cmdItemCount+index, aSelected );
         }
     }
 
@@ -1402,10 +1403,11 @@
         const MVPbkContactLink& aContactLink,
         TBool aSelected )
     {
+    TInt cmdItemCount = CommandItemCount();
     TInt index = iViewStack.IndexOfLinkL( aContactLink );
     if ( index != KErrNotFound )
         {
-        SetSelectedContactL( index, aSelected );
+        SetSelectedContactL( index+cmdItemCount, aSelected );
         }
     }
 
@@ -2216,11 +2218,6 @@
             	iFindBox->SetFocus( ETrue, EDrawNow );
             	}
             }
-        else
-            {
-            iFindBox->SetNonFocusing();
-            iFindBox->SetFocus( EFalse, EDrawNow );
-            }
         }
     }
 
@@ -2324,10 +2321,6 @@
             iListBox.SetCurrentItemIndexAndDraw(0);
             }
         }
-    else
-        {
-        iListBox.SetCurrentItemIndexAndDraw(0);
-        }
     }
 
 void CPbk2NamesListReadyState::UpdateAdaptiveSearchGridL( TBool aClearCache )