gui: Fix undefined behavior in TreeModel.

std::sort() requires the comparison function to return false for even
comparison. Returning true results in undefined behavior and a potential
segfault.
This commit is contained in:
Vegard Storheil Eriksen 2020-02-28 03:05:39 +01:00 committed by Marcelina Kościelnicka
parent 3e95c57317
commit bb754441c8

View File

@ -135,7 +135,7 @@ void IdStringList::updateElements(Context *ctx, std::vector<IdString> elements)
}
// Same string.
return true;
return false;
});
}