Merge pull request #6575 from Russ4262/fix/rebuild_empty_job_with_gui

Path: Extend Job integrity check to GUI side, issue #6207 [Bug]
This commit is contained in:
sliptonic
2022-03-19 15:44:28 -05:00
committed by GitHub
2 changed files with 44 additions and 8 deletions

View File

@@ -296,14 +296,15 @@ class ObjectJob:
def setupSetupSheet(self, obj):
if not getattr(obj, "SetupSheet", None):
obj.addProperty(
"App::PropertyLink",
"SetupSheet",
"Base",
QT_TRANSLATE_NOOP(
"App::Property", "SetupSheet holding the settings for this job"
),
)
if not hasattr(obj, "SetupSheet"):
obj.addProperty(
"App::PropertyLink",
"SetupSheet",
"Base",
QT_TRANSLATE_NOOP(
"App::Property", "SetupSheet holding the settings for this job"
),
)
obj.SetupSheet = PathSetupSheet.Create()
if obj.SetupSheet.ViewObject:
import PathScripts.PathIconViewProvider