From ccf2032b8b563037cf230e37ab10cfc414da695a Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Tue, 4 Oct 2016 17:14:59 -0400 Subject: [PATCH] Fixed an error where executing would cause new objects to be created instead of removing the old ones. --- CadQuery/Shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CadQuery/Shared.py b/CadQuery/Shared.py index 5f0fbca..cd220a0 100644 --- a/CadQuery/Shared.py +++ b/CadQuery/Shared.py @@ -9,7 +9,7 @@ def clearActiveDocument(): # Grab our code editor so we can interact with it mw = FreeCADGui.getMainWindow() mdi = mw.findChild(QtGui.QMdiArea) - winName = mdi.currentSubWindow().windowTitle().split('.')[0] + winName = mdi.currentSubWindow().windowTitle().split(" ")[0].split('.')[0] try: doc = FreeCAD.getDocument(winName)