From 98d96af1c7e2240330a9f69ea9adb227e6df4291 Mon Sep 17 00:00:00 2001 From: John Tapsell Date: Wed, 16 Oct 2013 23:18:38 +0100 Subject: [PATCH] Don't translate the object name, otherwise the config will break in non-english languages --- src/ui/MainWindow.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 31662b8ba..8991ce240 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -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); } } -- 2.22.0