From 4e4d558910b7e42907e23d357158a4271a7b570d Mon Sep 17 00:00:00 2001 From: Johannes Paehr Date: Thu, 28 Dec 2017 17:16:50 +0100 Subject: [PATCH] bugfix in trainging mode: reference time should be correct now --- training.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/training.cpp b/training.cpp index c4ca27f..7375611 100644 --- a/training.cpp +++ b/training.cpp @@ -66,6 +66,11 @@ Training::Training(QWidget * parent, DataBase * db) this->minSecTime.append(res[0][1].toInt()); this->minSecTime.append(res[0][2].toInt()); this->minSecTime.append(res[0][3].toInt()); + + QVectorHelper::minSec1 = this->minSecTime.at(0); + QVectorHelper::minSec2 = this->minSecTime.at(1); + QVectorHelper::minSec3 = this->minSecTime.at(2); + QVectorHelper::minTrackTime = this->minSecTime.at(3); } void Training::ResetShell() { this->VecShell.clear(); @@ -93,6 +98,7 @@ void Training::ResetDea() { this->ui->lBestZeitDea->setText("∞"); this->ui->lCurRoundDea->setText("∞"); + this->firstTimeDea = true; this->ui->lBridgeDeaTop->setText("∞"); @@ -116,6 +122,16 @@ void Training::prepareNextRace() { this->ui->lCurRoundTimeShell->setText("∞"); this->ui->lCurRoundDea->setText("∞"); + this->ui->lBridgeShellTop->setText("∞"); + this->ui->lStraightShellTop->setText("∞"); + this->ui->lCurvesShellTop->setText("∞"); + this->ui->lDeltaTopTimeShell->setText("∞"); + + this->ui->lBridgeDeaTop->setText("∞"); + this->ui->lStraightDeaTop->setText("∞"); + this->ui->lCurvesDeaTop->setText("∞"); + this->ui->lDeltaTopTimeDea->setText("∞"); + this->finished = false; this->paused = false; this->started = true;