Fix sorting between groups and names in enum editor properties

console-destruction
Sven Eberhardt 2016-08-30 19:37:42 -04:00
parent 30738c760e
commit 0093555b49
1 changed files with 1 additions and 1 deletions

View File

@ -971,7 +971,7 @@ QStandardItemModel *C4PropertyDelegateEnum::CreateOptionModel() const
if (sorted)
{
// Groups always sorted by name. Could also sort by priority of highest priority element?
new_group->setData(group_name, C4DeepQComboBox::PriorityNameSortRole);
new_group->setData("010000000"+group_name, C4DeepQComboBox::PriorityNameSortRole);
}
parent->appendRow(new_group);
parent = new_group;