reset timer disabled state on race reset

This commit is contained in:
Dorian Zedler 2020-10-07 13:02:03 +02:00
parent a20e7e2fc9
commit d89ad38175
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -110,6 +110,11 @@ ScStw::StatusCode ScStwRace::reset() {
qDebug() << "[INFO][RACE] resetting race";
if(this->competitionMode) {
for(int i = 0; i < this->timers.length(); i++)
this->setTimerDisabled(i, false);
}
ScStw::StatusCode returnCode = ScStw::Success;
foreach(ScStwTimer *timer, this->timers){
@ -182,6 +187,8 @@ ScStw::StatusCode ScStwRace::setTimerDisabled(ScStwTimer* timer, bool disabled)
timer->setDisabled(disabled);
emit this->timersChanged();
return ScStw::Success;
}