diff --git a/src/QmlControls/ParameterEditorController.cc b/src/QmlControls/ParameterEditorController.cc index 447be09..a56d8ff 100644 --- a/src/QmlControls/ParameterEditorController.cc +++ b/src/QmlControls/ParameterEditorController.cc @@ -155,7 +155,7 @@ void ParameterEditorController::_factAdded(int compId, Fact* fact) QmlObjectListModel& groups = category->groups; inserted = false; for (int i=0; i(i)->name > group->name) { + if (groups.value(i)->name > group->name) { groups.insert(i, group); inserted = true; break;