Skip to content

Commit 1cc94d2

Browse files
fix: Correctly find QAction objects in the UI window
Co-authored-by: aider (gemini/gemini-2.5-pro) <[email protected]>
1 parent 9a17a28 commit 1cc94d2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pysdfscad_qtgui/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ def __init__(self):
155155

156156
self.sideSplitter = self.findChild(QSplitter, "sideSplitter")
157157
self.tabWidget = self.findChild(QTabWidget, "tabWidget")
158-
self.action_New = self.findChild(QAction, "action_New")
159-
self.actionOpen = self.findChild(QAction, "actionOpen")
160-
self.actionSave = self.findChild(QAction, "actionSave")
161-
self.actionSave_As = self.findChild(QAction, "actionSave_As")
162-
self.actionExit = self.findChild(QAction, "actionExit")
163-
self.actionRender = self.findChild(QAction, "actionRender")
164-
self.actionExport_Mesh = self.findChild(QAction, "actionExport_Mesh")
158+
self.action_New = self.ui_window.findChild(QAction, "action_New")
159+
self.actionOpen = self.ui_window.findChild(QAction, "actionOpen")
160+
self.actionSave = self.ui_window.findChild(QAction, "actionSave")
161+
self.actionSave_As = self.ui_window.findChild(QAction, "actionSave_As")
162+
self.actionExit = self.ui_window.findChild(QAction, "actionExit")
163+
self.actionRender = self.ui_window.findChild(QAction, "actionRender")
164+
self.actionExport_Mesh = self.ui_window.findChild(QAction, "actionExport_Mesh")
165165

166166
self.readSettings()
167167

0 commit comments

Comments
 (0)