summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:45:02 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:45:02 (GMT)
commita07d2b543b340fd8f43155ce71584602b54276e6 (patch)
tree464212f0ca54db505833a0b29f015d3ff02a3896
parentc7446afb050b3ad517c2e94b49875904e380b3c6 (diff)
Reset startup condition on reset and fix string
-rw-r--r--kstars/ekos/scheduler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kstars/ekos/scheduler.cpp b/kstars/ekos/scheduler.cpp
index 551cbb3..8f17e19 100644
--- a/kstars/ekos/scheduler.cpp
+++ b/kstars/ekos/scheduler.cpp
@@ -1055,12 +1055,12 @@ void Scheduler::evaluateJobs()
dms passedUp( timeUntil / 3600.0);
if (job->getState() == SchedulerJob::JOB_EVALUATION)
{
- appendLogText(i18n("%1 start up time already passed by %2. Job is marked as invalid.", job->getName(), passedUp.toHMSString()));
+ appendLogText(i18n("%1 startup time already passed by %2. Job is marked as invalid.", job->getName(), passedUp.toHMSString()));
job->setState(SchedulerJob::JOB_INVALID);
}
else
{
- appendLogText(i18n("%1 start up time already passed by %2. Aborting job...", job->getName(), passedUp.toHMSString()));
+ appendLogText(i18n("%1 startup time already passed by %2. Aborting job...", job->getName(), passedUp.toHMSString()));
job->setState(SchedulerJob::JOB_ABORTED);
}
@@ -4383,7 +4383,10 @@ void Scheduler::resetAllJobs()
return;
foreach(SchedulerJob *job, jobs)
+ {
job->setState(SchedulerJob::JOB_IDLE);
+ job->setStartupCondition(job->getFileStartupCondition());
+ }
}
void Scheduler::checkTwilightWarning(bool enabled)