Fixed ToolController creation when there are multiple jobs.

This commit is contained in:
Markus Lampert
2017-08-06 11:41:10 -07:00
committed by Yorik van Havre
parent ca8f827570
commit abe2a15a37
2 changed files with 4 additions and 4 deletions

View File

@@ -465,7 +465,7 @@ def addToJob(obj, jobname=None):
if len(jobs) == 1:
job = jobs[0]
else:
FreeCAD.Console.PrintError("Didn't find the job")
PathLog.error("Didn't find job %s" % jobname)
return None
else:
jobs = GetJobs()