Draft: fixed bug in task panels

This commit is contained in:
Yorik van Havre
2016-01-31 16:28:13 -02:00
parent de7e2cc26d
commit 6b0b3a8390
3 changed files with 15 additions and 9 deletions

View File

@@ -766,11 +766,13 @@ class ViewProviderComponent:
return []
def setEdit(self,vobj,mode):
taskd = ComponentTaskPanel()
taskd.obj = self.Object
taskd.update()
FreeCADGui.Control.showDialog(taskd)
return True
if mode == 0:
taskd = ComponentTaskPanel()
taskd.obj = self.Object
taskd.update()
FreeCADGui.Control.showDialog(taskd)
return True
return False
def unsetEdit(self,vobj,mode):
FreeCADGui.Control.closeDialog()