Do not start the task if it is not valid
This commit is contained in:
parent
8c4fa014bd
commit
3f02561f74
@ -54,6 +54,9 @@ void
|
||||
QCron::
|
||||
_checkState(bool firstRun)
|
||||
{
|
||||
if(!_is_valid)
|
||||
return;
|
||||
|
||||
int interval_ms = 0;
|
||||
QDateTime currentDateTime = QDateTime::currentDateTime();
|
||||
|
||||
@ -182,6 +185,7 @@ add(QDateTime & dt, EField field, int value)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user