BListView: small optimization.
We already got item at index, don’t get it again
This commit is contained in:
@@ -1512,7 +1512,7 @@ BListView::_Select(int32 index, bool extend)
|
|||||||
fLastSelected = index;
|
fLastSelected = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemAt(index)->Select();
|
item->Select();
|
||||||
if (Window() != NULL)
|
if (Window() != NULL)
|
||||||
InvalidateItem(index);
|
InvalidateItem(index);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user