If the supertype has the same label as the subtype, they are no longer considered
equal in the _MakeTypesUnique() method. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17813 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b66c623116
commit
32553c9788
@ -286,6 +286,9 @@ MimeTypeItem::Compare(const BListItem* a, const BListItem* b)
|
||||
int
|
||||
MimeTypeItem::CompareLabels(const BListItem* a, const BListItem* b)
|
||||
{
|
||||
if (a->OutlineLevel() != b->OutlineLevel())
|
||||
return a->OutlineLevel() - b->OutlineLevel();
|
||||
|
||||
const MimeTypeItem* typeA = dynamic_cast<const MimeTypeItem*>(a);
|
||||
const MimeTypeItem* typeB = dynamic_cast<const MimeTypeItem*>(b);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user