The type list will now show the generic file icon for types without an icon.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16420 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-16 13:28:54 +00:00
parent e47433bccb
commit b2be483b92

View File

@ -136,10 +136,11 @@ MimeTypeItem::DrawItem(BView* owner, BRect frame, bool complete)
BBitmap bitmap(BRect(0, 0, B_MINI_ICON - 1, B_MINI_ICON - 1), B_CMAP8);
BMimeType mimeType(fType.String());
status_t status = icon_for_type(mimeType, bitmap, B_MINI_ICON);
if (status < B_OK && fApplicationMode) {
// get default application icon
BMimeType appType(B_ELF_APP_MIME_TYPE);
status = icon_for_type(appType, bitmap, B_MINI_ICON);
if (status < B_OK) {
// get default generic/application icon
BMimeType genericType(fApplicationMode
? B_ELF_APP_MIME_TYPE : B_FILE_MIME_TYPE);
status = icon_for_type(genericType, bitmap, B_MINI_ICON);
}
if (status == B_OK) {