Commit 61d4bc1c authored by Thomas Gubler's avatar Thomas Gubler

sorted parameters: use QString::compare instead of strcmp

parent defcc170
......@@ -346,7 +346,7 @@ QTreeWidgetItem* QGCParamWidget::updateParameterDisplay(int compId, QString para
//Insert alphabetically
bool inserted = false;
for(int i = 0; i < parentItem->childCount(); i++) {
if (strcmp(parameterName.toStdString().c_str(), parentItem->child(i)->text(0).toStdString().c_str()) < 0)
if (parameterName.compare(parentItem->child(i)->text(0)) < 0 )
{
parentItem->insertChild(i, paramItem);
inserted = true;
......
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