From 606c6e9e0eb66b468511d799748ae5ea88f14afc Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Wed, 26 Jul 2017 13:01:52 -0700 Subject: [PATCH] Add object back to the job it came from on tag dressup deletion - without requiring the job selection dialog. --- src/Mod/Path/PathScripts/PathDressupTagGui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDressupTagGui.py b/src/Mod/Path/PathScripts/PathDressupTagGui.py index e8d8bbbfdb..763bf8810a 100644 --- a/src/Mod/Path/PathScripts/PathDressupTagGui.py +++ b/src/Mod/Path/PathScripts/PathDressupTagGui.py @@ -518,10 +518,11 @@ class PathDressupTagViewProvider: def onDelete(self, arg1=None, arg2=None): PathLog.track() - '''this makes sure that the base operation is added back to the project and visible''' + '''this makes sure that the base operation is added back to the job and visible''' if self.obj.Base.ViewObject: self.obj.Base.ViewObject.Visibility = True - PathUtils.addToJob(arg1.Object.Base) + job = PathUtils.findParentJob(self.obj) + PathUtils.addObjectToJob(arg1.Object.Base, job) #if self.debugDisplay(): # self.vobj.Debug.removeObjectsFromDocument() # self.vobj.Debug.Document.removeObject(self.vobj.Debug.Name)