Now also for "restart job" dialog: Only check "Run Immediately" initially when maximum running job count was not reached yet.

This commit is contained in:
LoRd_MuldeR 2013-10-13 22:08:06 +02:00
parent 4f88c5bda7
commit 4c76729c4b

View File

@ -334,7 +334,7 @@ void MainWindow::restartButtonPressed(void)
if((options) && (!sourceFileName.isEmpty()) && (!outputFileName.isEmpty()))
{
bool runImmediately = true;
bool runImmediately = (countRunningJobs() < (m_preferences->autoRunNextJob() ? m_preferences->maxRunningJobCount() : 1)); //bool runImmediately = true;
OptionsModel *tempOptions = new OptionsModel(*options);
if(createJob(sourceFileName, outputFileName, tempOptions, runImmediately, true))
{