Commit 61ed2023 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Delete preview job on abort

parent 5b4cd028
......@@ -464,8 +464,18 @@ void Capture::stop(bool abort)
emit newStatus(Ekos::CAPTURE_ABORTED);
}
activeJob->disconnect(this);
activeJob->reset();
if (activeJob->isPreview() == false)
{
activeJob->disconnect(this);
activeJob->reset();
}
else // Delete preview job
{
jobs.removeOne(activeJob);
delete (activeJob);
activeJob = nullptr;
}
}
state = CAPTURE_IDLE;
......
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