xbmc/xbmc — comment on commit ffdb63df1efeb781d4a67fe35cd8c3f39036242d
File:  line 0
By jmarshallnz:

The problem is you don't want to SelectItem(i), you want to select the item you're adding:

SelectItem(m_items.size()-1);

Feel free to fix :)