summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-12 07:51:47 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-12 07:51:47 (GMT)
commit5726adf01b09cbc8e65080a080ca0588305f83a4 (patch)
treeffe022080a3986710b2a3d5f2db878fdb66159d1
parentd9c71c2dde2d5cc527e573d07f32783a7a494d63 (diff)
Reset startup condition to file startup condition on abort/reset
-rw-r--r--kstars/ekos/scheduler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kstars/ekos/scheduler.cpp b/kstars/ekos/scheduler.cpp
index 55b84a6..cc1b19d 100644
--- a/kstars/ekos/scheduler.cpp
+++ b/kstars/ekos/scheduler.cpp
@@ -827,7 +827,10 @@ void Scheduler::stop()
}
if (job->getState() <= SchedulerJob::JOB_BUSY)
+ {
job->setState(SchedulerJob::JOB_ABORTED);
+ job->setStartupCondition(job->getFileStartupCondition());
+ }
}
}