From bc7087da1a53c11032a9bf4181ada63b8b5fa990 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Thu, 12 Jun 2014 21:11:45 +0200 Subject: [PATCH] OP-1351 added missing tr() call for thermal calibration estimated time message --- .../config/calibration/thermal/thermalcalibrationhelper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/calibration/thermal/thermalcalibrationhelper.cpp b/ground/openpilotgcs/src/plugins/config/calibration/thermal/thermalcalibrationhelper.cpp index 90dcbbcd8..0f8819745 100644 --- a/ground/openpilotgcs/src/plugins/config/calibration/thermal/thermalcalibrationhelper.cpp +++ b/ground/openpilotgcs/src/plugins/config/calibration/thermal/thermalcalibrationhelper.cpp @@ -410,8 +410,9 @@ void ThermalCalibrationHelper::updateTemp(float temp) setProgressMax(100); - QTime t = QTime(0, 0).addSecs(m_targetduration); - addInstructions(tr("Estimated duration: %1").arg(t.toString("m' minute(s) and 's' second(s).'"))); + QTime time = QTime(0, 0).addSecs(m_targetduration); + QString timeString = time.toString(tr("m' minute(s) and 's' second(s).'")); + addInstructions(tr("Estimated duration: %1").arg(timeString)); QString str = QStringLiteral("INFO::Trace gradient : %1, elapsed : %2 initial gradient : %3, target : %4") .arg(m_gradient).arg(elapsed).arg(m_initialGradient).arg(m_targetduration);