equal
deleted
inserted
replaced
2890 FUNC_LOG; |
2890 FUNC_LOG; |
2891 const TInt removedindex(iWorld.IndexOfItem(aItemId)); |
2891 const TInt removedindex(iWorld.IndexOfItem(aItemId)); |
2892 iWorld.RemoveL(aItemId); |
2892 iWorld.RemoveL(aItemId); |
2893 if (iFocusedItem == aItemId) |
2893 if (iFocusedItem == aItemId) |
2894 { |
2894 { |
2895 if (iWorld.ItemCount() > removedindex) |
2895 if ( iWorld.ItemCount() > removedindex && removedindex != KErrNotFound ) |
2896 { |
2896 { |
2897 SetFocusedItemL(iWorld.Item(removedindex), EFalse); |
2897 SetFocusedItemL(iWorld.Item(removedindex), EFalse); |
2898 } |
2898 } |
2899 else if (iWorld.ItemCount() > 0) |
2899 else if ( iWorld.ItemCount() > 0 && removedindex != KErrNotFound ) |
2900 { |
2900 { |
2901 SetFocusedItemL(iWorld.Item(removedindex - 1), EFalse); |
2901 SetFocusedItemL(iWorld.Item(removedindex - 1), EFalse); |
2902 } |
2902 } |
2903 else |
2903 else |
2904 { |
2904 { |