When the BListView is not attached to any window Deselect() does not work. So, if you remove an item that is selected the BListView's selection index is not updated and thus it results in a crash when it is attached again. This happens when you use a BTabView and change the information of the BListView while its tab is inactive.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7070 a95241bf-73f2-0310-859d-f6bbb57e9c96