PartDesign: [skip ci] fix method to access main window in shaft wizard

This commit is contained in:
wmayer
2020-09-22 19:15:59 +02:00
parent ec5bbad626
commit 60443034a4

View File

@@ -88,7 +88,7 @@ class TaskWizardShaft:
self.form.setLayout(layout)
# Switch to feature window
mdi=QtGui.QApplication.activeWindow().findChild(QtGui.QMdiArea)
mdi=FreeCADGui.getMainWindow().findChild(QtGui.QMdiArea)
cw.setActiveSubWindow(featureWindow)
def slotAllx(self):