diff --git a/Tests/scheduler/create_flats.esq b/Tests/scheduler/create_flats.esq new file mode 100644 --- /dev/null +++ b/Tests/scheduler/create_flats.esq @@ -0,0 +1,50 @@ + + +CCD Simulator +CCD Simulator +4 +0 +60 +0 + +0.5 + +1 +1 + + +0 +0 +1280 +1024 + +0 +Luminance +Flat + + +0 +0 +0 + +3 +0 +/var/tmp/kstars_tests +0 +0 + + + + +Manual + + +ADU +10000 +2000 + +False +False + + + diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp --- a/kstars/ekos/capture/capture.cpp +++ b/kstars/ekos/capture/capture.cpp @@ -1181,8 +1181,8 @@ if (activeJob->getExposure() >= 1) KSNotification::event(QLatin1String("EkosCaptureImageReceived"), i18n("Captured image received"), KSNotification::EVENT_INFO); - // If it was initially set as preview job - if (activeJob->isPreview()) + // If it was initially set as pure preview job and NOT as preview for calibration + if (activeJob->isPreview() && calibrationStage != CAL_CALIBRATION) { jobs.removeOne(activeJob); // Reset upload mode if it was changed by preview @@ -1208,7 +1208,8 @@ } /* Increase the sequence's current capture count */ - activeJob->setCompleted(activeJob->getCompleted() + 1); + if (! activeJob->isPreview()) + activeJob->setCompleted(activeJob->getCompleted() + 1); /* If we were assigned a captured frame map, also increase the relevant counter for prepareJob */ SchedulerJob::CapturedFramesMap::iterator frame_item = capturedFramesMap.find(activeJob->getSignature());