Fix: prioritize more specific previews

This commit is contained in:
Nikita Ivanov
2022-06-12 22:32:15 +05:00
parent bd5dd31aed
commit 9d5c7f144f

View File

@ -37,7 +37,7 @@ static int cmp_previews(const void *p1, const void *p2)
return -i; return -i;
if ((i = strcmpnull(pr1->subtype, pr2->subtype)) != 0) if ((i = strcmpnull(pr1->subtype, pr2->subtype)) != 0)
return i; return -i;
if ((i = pr2->priority - pr1->priority) != 0) if ((i = pr2->priority - pr1->priority) != 0)
return i; return i;