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);
|
BNode node(&entry);
|
||||||
|
|
||||||
if (node.IsFile()) {
|
if (node.IsFile()) {
|
||||||
BNodeInfo nodeInfo(&node);
|
BMimeType refType;
|
||||||
char fileType[B_MIME_TYPE_LENGTH];
|
BMimeType::GuessMimeType(&ref, &refType);
|
||||||
if (nodeInfo.GetType(fileType) != B_OK)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
BMimeType refType(fileType);
|
|
||||||
if (!imageType.Contains(&refType))
|
if (!imageType.Contains(&refType))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue