<table><tr><td style="">TallFurryMan created this revision.<br />TallFurryMan added reviewers: mutlaqja, wreissenberger.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />TallFurryMan requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16173">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Refactoring job manipulation did include both arrows for job reordering and button for job deletion.<br />
When using that refactored function to prevent reordering of jobs sorted by altitude and priority, the job deletion was mistakenly impacted too.<br />
This differential fixes this issue.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Disable Ekos option "Sort Jobs by Altitude and Priority", and load or create a schedule.<br />
Observe as jobs can be reordered and deleted without issue.<br />
Enable Ekos option "Sort Jobs by Altitude and Priority".<br />
BUG: Observe as the button bar does not change when saving settings, but updates as soon as a job is clicked.<br />
Without this differential, clicking on a job disables the reorder buttons and the delete button.<br />
With this differential, clicking on a job disables the reorder buttons, but not the delete button.<br />
Check that starting the scheduler still disables both reorder and delete buttons, and that stopping resets them based on the sort option.<br />
Check that both reorder and delete buttons are disabled when there is no job in the list.<br />
Check that the reorder buttons are disabled, but the delete button is kept enabled when there is one single job in the list.</p>

<p>Note: this will need a signal to indicate options were updated, so that UI may react to changes immediately.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>bugfix__regression_job_deletion (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16173">https://phabricator.kde.org/D16173</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/ekos/scheduler/scheduler.cpp<br />
kstars/ekos/scheduler/scheduler.h</div></div></div><br /><div><strong>To: </strong>TallFurryMan, mutlaqja, wreissenberger<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>