Commit defcc170 authored by Thomas Gubler's avatar Thomas Gubler

alphabetical parameters: use strcmp which gives better results with underscores

parent a85e3631
......@@ -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 (strcoll(parameterName.toStdString().c_str(), parentItem->child(i)->text(0).toStdString().c_str()) < 0)
if (strcmp(parameterName.toStdString().c_str(), parentItem->child(i)->text(0).toStdString().c_str()) < 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