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:
@@ -647,7 +647,8 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
|
|||||||
int32 itemCount = CountItems();
|
int32 itemCount = CountItems();
|
||||||
while (i < itemCount) {
|
while (i < itemCount) {
|
||||||
teamItem = dynamic_cast<TTeamMenuItem*>(ItemAt(i));
|
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);
|
AddItem(item, i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user