Commit 09e751f6 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Fix crash due to activeJob pointer not being reset. Make sure all queue icons...

Fix crash due to activeJob pointer not being reset. Make sure all queue icons are disabled during sequence execution
parent 36c6899a
......@@ -378,8 +378,7 @@ void Capture::start()
startB->setToolTip(i18n("Stop Sequence"));
pauseB->setEnabled(true);
foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
button->setEnabled(false);
setBusy(true);
prepareJob(first_job);
......@@ -448,8 +447,8 @@ void Capture::stop(bool abort)
pauseB->setEnabled(false);
}
foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
button->setEnabled(true);
//foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
//button->setEnabled(true);
seqTimer->stop();
......@@ -1737,8 +1736,9 @@ void Capture::setBusy(bool enable)
enable ? pi->startAnimation() : pi->stopAnimation();
previewB->setEnabled(!enable);
//startB->setEnabled(!enable);
//stopB->setEnabled(enable);
foreach (QAbstractButton *button, queueEditButtonGroup->buttons())
button->setEnabled(!enable);
}
void Capture::prepareJob(SequenceJob *job)
......@@ -2523,11 +2523,11 @@ void Capture::resetJobs()
foreach(SequenceJob *job, jobs)
job->resetStatus();
stop();
// Reste active job pointer
// Reset active job pointer
activeJob = NULL;
stop();
ignoreJobProgress=true;
}
......
Supports Markdown
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