Now use the mimetype of the file linked and not the link itself
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -154,7 +154,8 @@ ExpanderRules::MatchingRule(BString &fileName, const char *filetype)
|
|||||||
ExpanderRule *
|
ExpanderRule *
|
||||||
ExpanderRules::MatchingRule(const entry_ref *ref)
|
ExpanderRules::MatchingRule(const entry_ref *ref)
|
||||||
{
|
{
|
||||||
BNode node(ref);
|
BEntry entry(ref, true);
|
||||||
|
BNode node(&entry);
|
||||||
BNodeInfo nodeInfo(&node);
|
BNodeInfo nodeInfo(&node);
|
||||||
char type[B_MIME_TYPE_LENGTH];
|
char type[B_MIME_TYPE_LENGTH];
|
||||||
nodeInfo.GetType(type);
|
nodeInfo.GetType(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user