mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Fix: prioritize more specific previews
This commit is contained in:
parent
bd5dd31aed
commit
9d5c7f144f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user