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:
parent
bd6dcb363f
commit
dd6fccb062
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user