reset timer disabled state on race reset
This commit is contained in:
parent
a20e7e2fc9
commit
d89ad38175
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue