BListView: Only select enabled items

when selecting multiple items in a multi-select list view.
This commit is contained in:
John Scipione 2013-12-23 04:40:10 -05:00
parent b38f03f561
commit c6c5cd9940

View File

@ -1551,8 +1551,8 @@ BListView::_Select(int32 from, int32 to, bool extend)
}
for (int32 i = from; i <= to; ++i) {
if (item && !item->IsSelected()) {
BListItem* item = ItemAt(i);
if (item != NULL && !item->IsSelected() && item->IsEnabled()) {
item->Select();
if (Window() != NULL)
InvalidateItem(i);