1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

Don't translate list items and sort the list

This commit is contained in:
Fredrik Larsson 2014-11-24 06:30:54 +11:00
parent 5e22a4d15b
commit ea5c0db322

View File

@ -211,7 +211,7 @@ void AirframeInitialTuningPage::loadValidFiles()
void AirframeInitialTuningPage::setupTemplateList()
{
QListWidgetItem *item = new QListWidgetItem(tr("Current Tuning"), ui->templateList);
QListWidgetItem *item = new QListWidgetItem(("Current Tuning"), ui->templateList);
item->setData(Qt::UserRole + 1, QVariant::fromValue((QJsonObject *)NULL));
foreach(QString templ, m_templates.keys()) {
@ -220,6 +220,7 @@ void AirframeInitialTuningPage::setupTemplateList()
item = new QListWidgetItem(json->value("name").toString(), ui->templateList);
item->setData(Qt::UserRole + 1, QVariant::fromValue(json));
}
ui->templateList->sortItems();
ui->templateList->setCurrentRow(0);
}