diff -r 6b5524b4f673 -r 38bb213f60ba phonebookui/Phonebook2/UIControls/src/CPbk2NamesListFilteredState.cpp --- a/phonebookui/Phonebook2/UIControls/src/CPbk2NamesListFilteredState.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/phonebookui/Phonebook2/UIControls/src/CPbk2NamesListFilteredState.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -1130,21 +1130,9 @@ void CPbk2NamesListFilteredState::CmdItemVisibilityChanged( TInt aCmdItemId, TBool aVisible ) { TInt cmdItemIndex = FindCommand(aCmdItemId); - TInt cmdListBoxIndex = EnabledCommandCount(); - if( aVisible ) - { - cmdListBoxIndex--; - } - // Update the HiddenSelection property of the command items. - TListItemProperties prop( iListBox.ItemDrawer()->Properties(cmdListBoxIndex) ); - prop.SetHiddenSelection(aVisible); - TRAP_IGNORE( - iListBox.ItemDrawer()->SetPropertiesL(cmdListBoxIndex, prop); - - HandleCommandEventL( + TRAP_IGNORE( HandleCommandEventL( (aVisible ? EItemAdded : EItemRemoved), - cmdItemIndex); - ); + cmdItemIndex) ); } // -------------------------------------------------------------------------- @@ -1229,21 +1217,4 @@ } } -// -------------------------------------------------------------------------- -// CPbk2NamesListFilteredState::EnabledCommandCount -// -------------------------------------------------------------------------- -// -TInt CPbk2NamesListFilteredState::EnabledCommandCount() const - { - TInt result = 0; - for ( TInt i = 0; i < iCommandItems.Count(); ++i ) - { - if(iCommandItems[i]->IsEnabled()) - { - result++; - } - } - return result; - } - // End of File