Moved the editor close to the correct place.

This commit is contained in:
Jeremy Wright 2015-06-10 22:01:09 -04:00
parent 03bfe4772b
commit 473ddc09d3
2 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,6 @@ class CadQueryCloseScript:
#Clear our script and whatever was rendered by it out
cqCodePane.file.close()
cqCodePane.close()
class CadQueryExecuteExample:
exFile = None

View File

@ -185,6 +185,9 @@ class CadQueryWorkbench (Workbench):
#Getting the main window will allow us to start setting things up the way we want
mw = FreeCADGui.getMainWindow()
cqCodePane = mw.findChild(QtGui.QPlainTextEdit, "cqCodePane")
cqCodePane.close()
dockWidgets = mw.findChildren(QtGui.QDockWidget)
for widget in dockWidgets: