OSDN Git Service

Now also for "restart job" dialog: Only check "Run Immediately" initially when maximu...
authorlordmulder <mulder2@gmx.de>
Sun, 13 Oct 2013 20:08:06 +0000 (22:08 +0200)
committerlordmulder <mulder2@gmx.de>
Sun, 13 Oct 2013 20:08:06 +0000 (22:08 +0200)
src/win_main.cpp

index 3bb0365..cbc0ed3 100644 (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))
                {