Use GetTrackerIcon() in case getting the specific app icon fails, instead of using the (outdated) icon in the resource. Fixes bug #984. Thanks to Stephan for the hint.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-18 06:55:59 +00:00
parent 2f5c4a90d8
commit c2831e444a

View File

@ -624,12 +624,8 @@ TBarApp::AddTeam(team_id team, uint32 flags, const char *sig, entry_ref *ref)
new BBitmap(kIconSize, kIconFormat), strdup(ref->name));
barInfo->teams->AddItem((void *)team);
if (appMime.GetIcon(barInfo->icon, B_MINI_ICON) != B_OK) {
const BBitmap* generic = AppResSet()->FindBitmap(B_MESSAGE_TYPE, R_GenericAppIcon);
if (generic)
barInfo->icon->SetBits(generic->Bits(), barInfo->icon->BitsLength(),
0, generic->ColorSpace());
}
if (appMime.GetIcon(barInfo->icon, B_MINI_ICON) != B_OK)
appMime.GetTrackerIcon(barInfo->icon, B_MINI_ICON);
sBarTeamInfoList.AddItem(barInfo);