From dd6fccb0629852693b4bbb03037431a63470d0f1 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 22 Aug 2016 16:52:25 -0700 Subject: [PATCH] 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. --- src/apps/deskbar/ExpandoMenuBar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/deskbar/ExpandoMenuBar.cpp b/src/apps/deskbar/ExpandoMenuBar.cpp index 3e03debf55..66df4e6567 100644 --- a/src/apps/deskbar/ExpandoMenuBar.cpp +++ b/src/apps/deskbar/ExpandoMenuBar.cpp @@ -647,7 +647,8 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name, int32 itemCount = CountItems(); while (i < itemCount) { teamItem = dynamic_cast(ItemAt(i)); - if (teamItem != NULL && strcasecmp(teamItem->Label(), name) > 0) { + if (teamItem != NULL && gCollator.Compare(teamItem->Label(), name) + > 0) { AddItem(item, i); break; }