The large icon wouldn't be written correctly (or at all) into the MIME type, due

to a copy&paste bug.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-26 17:01:42 +00:00
parent 9057d59d6c
commit 0b10fd4841

View File

@ -110,8 +110,8 @@ CreateAppMetaMimeThread::DoMimeUpdate(const entry_ref* ref, bool* _entryIsDir)
// Large Icon
BBitmap largeIcon(BRect(0, 0, 31, 31), B_BITMAP_NO_SERVER_LINK, B_CMAP8);
if (status == B_OK && (fForce || typeNode.GetAttrInfo(kLargeIconAttr, &info) != B_OK)) {
if (appInfo.GetIcon(&miniIcon, B_LARGE_ICON) == B_OK)
status = mime.SetIcon(&miniIcon, B_LARGE_ICON);
if (appInfo.GetIcon(&largeIcon, B_LARGE_ICON) == B_OK)
status = mime.SetIcon(&largeIcon, B_LARGE_ICON);
}
// Supported Types