Commit 2e36cbf2 authored by Thomas Gubler's avatar Thomas Gubler Committed by Gus Grubba

[QmlObjectListModel] fix list insert

Fixes https://github.com/mavlink/qgroundcontrol/issues/6770
parent a95b2d32
......@@ -194,7 +194,7 @@ void QmlObjectListModel::insert(int i, QList<QObject*> objects)
}
j++;
_objectList.insert(i, object);
_objectList.insert(j, object);
}
insertRows(i, objects.count());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment