From 5c6a6ba8edcfd717bd262c29ce9b307e6d8f83ef Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Fri, 5 Jan 2007 04:39:59 -0600 Subject: [PATCH] Patch from https://bugs.freedesktop.org/show_bug.cgi?id=9242 --- moo/mooutils/xdgmime/xdgmimemagic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moo/mooutils/xdgmime/xdgmimemagic.c b/moo/mooutils/xdgmime/xdgmimemagic.c index b85214cc..f780c4b5 100644 --- a/moo/mooutils/xdgmime/xdgmimemagic.c +++ b/moo/mooutils/xdgmime/xdgmimemagic.c @@ -676,7 +676,8 @@ _xdg_mime_magic_lookup_data (XdgMimeMagic *mime_magic, mime_type = match->mime_type; priority = match->priority; } - else if (had_match && match->priority == priority) + else if (had_match && match->priority == priority && + !xdg_mime_mime_type_subclass (mime_type, match->mime_type)) /* multiple unrelated patterns with the same priority matched, * so we can't tell what type this is. */ mime_type = NULL;