Ensure that guiding is running when capture is started

Authored by wreissenberger on Nov 2 2019, 7:09 AM.

Description

Ensure that guiding is running when capture is started

Summary: When guiding terminates after a capture sequence has terminated, the scheduler does not restart the guiding before it executes the next iteration of the capture sequence. With this fix, the scheduler checks, whether a requested guiding is running before the capture sequence is started.

Test Plan: Create a schedule that repeats a capture sequence several times and requires guiding. Start the schedule and interrupt guiding exactly when a single capture sequence is completed. Since this is only a short time frame, use the debugger, set a breakpoint in SequenceJob::setStatus() and wait, until the status is set to JOB_DONE. As soon as this is the case, stop guiding. Without this fix, the scheduler starts the next capture sequence iteration without restarting the guiding. With this fix, guiding should be restarted.

Reviewers: mutlaqja, lancaster, TallFurryMan

Reviewed By: mutlaqja

Subscribers: kde-edu

Tags: KDE Edu

Differential Revision: https://phabricator.kde.org/D25110