Removed some troubleshooting code that caused the module to throw an error when switching to another workbench.

This commit is contained in:
Jeremy Wright 2014-11-21 22:50:05 -05:00
parent 8dbd7d5877
commit 8fbf4ee4c1
2 changed files with 5 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea/

View File

@ -98,7 +98,7 @@ class CadQueryWorkbench (Workbench):
#Only hide the widget if it isn't already hidden #Only hide the widget if it isn't already hidden
if not widget.isHidden(): if not widget.isHidden():
widget.setVisible(False) widget.setVisible(False)
FreeCAD.Console.PrintMessage(widget.objectName()) #FreeCAD.Console.PrintMessage(widget.objectName())
self.closedWidgets.append(widget) self.closedWidgets.append(widget)
else: else:
widget.setVisible(True) widget.setVisible(True)
@ -126,8 +126,8 @@ class CadQueryWorkbench (Workbench):
ExportCQ.save() ExportCQ.save()
#TODO: This won't work for now because the views are destroyed when they are hidden #TODO: This won't work for now because the views are destroyed when they are hidden
for widget in self.closedWidgets: # for widget in self.closedWidgets:
FreeCAD.Console.PrintMessage(widget.objectName()) # FreeCAD.Console.PrintMessage(widget.objectName())
# widget.setVisible(True) # widget.setVisible(True)
FreeCADGui.addCommand('CadQueryOpenScript', CadQueryOpenScript()) FreeCADGui.addCommand('CadQueryOpenScript', CadQueryOpenScript())