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:
parent
bdfc47dbcd
commit
6f93ad781b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user