From: Youness Alaoui Date: Fri, 31 Jul 2015 18:17:17 +0000 (-0400) Subject: Get the toplevel parent to get the main window, easier and safer X-Git-Tag: lulzbot-15.02.1-2.01~55^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39e76cab17f7167f51023b42a03761f9b4eca9b7;p=cura.git Get the toplevel parent to get the main window, easier and safer --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 1a101ccd..586936b7 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -159,7 +159,7 @@ class SceneView(openglGui.glGuiPanel): self.loadScene(filenames) def loadFiles(self, filenames): - mainWindow = self.GetParent().GetParent().GetParent() + mainWindow = self.GetTopLevelParent() # only one GCODE file can be active # so if single gcode file, process this # otherwise ignore all gcode files