From 7e91a89caf0408eeb18f34da9ce16f5c87844431 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 28 Dec 2020 16:17:38 +0100 Subject: [PATCH] - bugfixes --- ScStwLibraries/sources/scstwrace.cpp | 1 + ScStwLibraries/sources/scstwtimer.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ScStwLibraries/sources/scstwrace.cpp b/ScStwLibraries/sources/scstwrace.cpp index 1c6d548..77448b5 100644 --- a/ScStwLibraries/sources/scstwrace.cpp +++ b/ScStwLibraries/sources/scstwrace.cpp @@ -269,6 +269,7 @@ bool ScStwRace::playSoundsAndStartTimers() { } else { this->startDelayTimer->stop(); + this->startDelayTimer->setInterval(minimumReadyDelay); this->startDelayTimer->start(); timerTriggered = true; } diff --git a/ScStwLibraries/sources/scstwtimer.cpp b/ScStwLibraries/sources/scstwtimer.cpp index 0744a66..ba4636e 100644 --- a/ScStwLibraries/sources/scstwtimer.cpp +++ b/ScStwLibraries/sources/scstwtimer.cpp @@ -280,11 +280,16 @@ QString ScStwTimer::getText() { } void ScStwTimer::setDisabled(bool disabled) { + if(this->isDisabled() == disabled) + return; + if(disabled) this->setState(DISABLED); - else { + else this->setState(IDLE); - } + + emit this->readyStateChanged(this->getReadyState()); + } void ScStwTimer::setWantsToBeDisabled(bool wantsToBeDisabled) {