calls again BMimeType::GuessMimeType() in BackgroundsView (was only called in the ImagePanel filter)

should fix bug #1101


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20400 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-03-20 22:40:34 +00:00
parent bdfc47dbcd
commit 6f93ad781b
1 changed files with 2 additions and 6 deletions

View File

@ -972,12 +972,8 @@ BackgroundsView::RefsReceived(BMessage *msg)
BNode node(&entry);
if (node.IsFile()) {
BNodeInfo nodeInfo(&node);
char fileType[B_MIME_TYPE_LENGTH];
if (nodeInfo.GetType(fileType) != B_OK)
continue;
BMimeType refType(fileType);
BMimeType refType;
BMimeType::GuessMimeType(&ref, &refType);
if (!imageType.Contains(&refType))
continue;