From 8afcac1bb3241ecfd5b5abc0a8b14c86fd0c7fa0 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 6 Jan 2014 23:30:25 -0500 Subject: [PATCH] Deskbar: Compare signature case-insensitive --- src/apps/deskbar/BarView.cpp | 2 +- src/apps/deskbar/ExpandoMenuBar.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp index d904e35bb7..d8f90907d9 100644 --- a/src/apps/deskbar/BarView.cpp +++ b/src/apps/deskbar/BarView.cpp @@ -992,7 +992,7 @@ TBarView::AppCanHandleTypes(const char* signature) || !fCachedTypesList || fCachedTypesList->CountItems() == 0) return false; - if (strcmp(signature, kTrackerSignature) == 0) { + if (strcasecmp(signature, kTrackerSignature) == 0) { // tracker should support all types // and should pass them on to the appropriate application return true; diff --git a/src/apps/deskbar/ExpandoMenuBar.cpp b/src/apps/deskbar/ExpandoMenuBar.cpp index 90d7551c36..9e340076a8 100644 --- a/src/apps/deskbar/ExpandoMenuBar.cpp +++ b/src/apps/deskbar/ExpandoMenuBar.cpp @@ -586,17 +586,17 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name, TTeamMenuItem* item = new TTeamMenuItem(team, icon, name, signature, itemWidth, itemHeight, fDrawLabel, fVertical); - if (settings->trackerAlwaysFirst && !strcmp(signature, kTrackerSignature)) + if (settings->trackerAlwaysFirst + && strcasecmp(signature, kTrackerSignature) == 0) { AddItem(item, 0); - else if (settings->sortRunningApps) { - TTeamMenuItem* teamItem - = dynamic_cast(ItemAt(0)); + } else if (settings->sortRunningApps) { + TTeamMenuItem* teamItem = dynamic_cast(ItemAt(0)); int32 firstApp = 0; // if Tracker should always be the first item, we need to skip it // when sorting in the current item if (settings->trackerAlwaysFirst && teamItem != NULL - && !strcmp(teamItem->Signature(), kTrackerSignature)) { + && !strcasecmp(teamItem->Signature(), kTrackerSignature)) { firstApp++; }