Browse Source

Don't translate the object name, otherwise the config will break in non-english languages

QGC4.4
John Tapsell 12 years ago
parent
commit
98d96af1c7
  1. 3
      src/ui/MainWindow.cc

3
src/ui/MainWindow.cc

@ -823,7 +823,8 @@ void MainWindow::showHILConfigurationWidget(UASInterface* uas) @@ -823,7 +823,8 @@ void MainWindow::showHILConfigurationWidget(UASInterface* uas)
{
QGCHilConfiguration* hconf = new QGCHilConfiguration(mav, this);
QString hilDockName = tr("HIL Config %1").arg(uas->getUASName());
QDockWidget* hilDock = createDockWidget(simView, hconf,hilDockName, hilDockName.toUpper().replace(" ", "_"),VIEW_SIMULATION,Qt::LeftDockWidgetArea);
QString hilDockObjectName = QString("HIL_CONFIG_%1").arg(uas->getUASName().toUpper().replace(' ','_'));
QDockWidget* hilDock = createDockWidget(simView, hconf,hilDockName, hilDockObjectName,VIEW_SIMULATION,Qt::LeftDockWidgetArea);
hilDocks.insert(mav->getUASID(), hilDock);
}
}

Loading…
Cancel
Save