Deskbar: Add new apps using locale collator

... sorry I overlooked this case in my last commit. Need to add apps using
the locale collator Compare() method instead of strcasecmp() as well.

Fixes #7712 better.
This commit is contained in:
John Scipione 2016-08-22 16:52:25 -07:00
parent bd6dcb363f
commit dd6fccb062

View File

@ -647,7 +647,8 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
int32 itemCount = CountItems();
while (i < itemCount) {
teamItem = dynamic_cast<TTeamMenuItem*>(ItemAt(i));
if (teamItem != NULL && strcasecmp(teamItem->Label(), name) > 0) {
if (teamItem != NULL && gCollator.Compare(teamItem->Label(), name)
> 0) {
AddItem(item, i);
break;
}