Commit a4cebf29 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

In case upload mode is LOCAL then try to find out if any jobs have any light...

In case upload mode is LOCAL then try to find out if any jobs have any light frames before returning
parent d7864936
......@@ -3908,6 +3908,17 @@ bool Scheduler::estimateJobTime(SchedulerJob *schedJob)
{
appendLogText(i18n("Cannot estimate time since the sequence saves the files remotely."));
schedJob->setEstimatedTime(-2);
// Iterate over all jobs, if just one requires FRAME_LIGHT then we set it as is and return
foreach(SequenceJob *oneJob, jobs)
{
if (oneJob->getFrameType() == FRAME_LIGHT)
{
lightFramesRequired = true;
break;
}
}
schedJob->setLightFramesRequired(lightFramesRequired);
qDeleteAll(jobs);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment