make the batch queue start/stop switch insensitive when there are no pending images in the queue

This commit is contained in:
Alberto Griggio 2018-01-05 23:47:23 +01:00
parent 5cb6a0ebaf
commit eb3c7f13ae

View File

@ -249,6 +249,12 @@ void BatchQueuePanel::queueSizeChanged (int qsize, bool queueEmptied, bool queue
{
updateTab ( qsize);
if (qsize == 0 || (qsize == 1 && !fdir->get_sensitive())) {
qStartStop->set_sensitive(false);
} else {
qStartStop->set_sensitive(true);
}
if (queueEmptied || queueError) {
stopBatchProc ();
fdir->set_sensitive (true);
@ -283,6 +289,9 @@ void BatchQueuePanel::startBatchProc ()
if (batchQueue->hasJobs()) {
fdir->set_sensitive (false);
fformat->set_sensitive (false);
if (batchQueue->getEntries().size() == 1) {
qStartStop->set_sensitive(false);
}
saveOptions();
batchQueue->startProcessing ();
} else {