Browse Source

ParameterEditorController: fix incorrect cast

This lead to a segfault when importing params
QGC4.4
Beat Küng 3 years ago committed by Daniel Agar
parent
commit
bc49454792
  1. 2
      src/QmlControls/ParameterEditorController.cc

2
src/QmlControls/ParameterEditorController.cc

@ -155,7 +155,7 @@ void ParameterEditorController::_factAdded(int compId, Fact* fact) @@ -155,7 +155,7 @@ void ParameterEditorController::_factAdded(int compId, Fact* fact)
QmlObjectListModel& groups = category->groups;
inserted = false;
for (int i=0; i<groups.count(); i++) {
if (groups.value<ParameterEditorCategory*>(i)->name > group->name) {
if (groups.value<ParameterEditorGroup*>(i)->name > group->name) {
groups.insert(i, group);
inserted = true;
break;

Loading…
Cancel
Save