mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
UI: sort audio sources by name locale aware
This commit is contained in:
parent
6dce4662cf
commit
792ceb028e
@ -34,7 +34,7 @@ void InsertQObjectByName(std::vector<QObjectPtr> &controls, QObjectPtr control)
|
||||
{
|
||||
QString name = control->objectName();
|
||||
auto finder = [name](QObjectPtr elem) {
|
||||
return elem->objectName() > name;
|
||||
return name.localeAwareCompare(elem->objectName()) < 0;
|
||||
};
|
||||
auto found_at = std::find_if(controls.begin(), controls.end(), finder);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user