From e3c52b1d34055f99272713fe5b1a565a8b8bbc7c Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 3 Jul 2025 16:54:20 +0200 Subject: [PATCH] Fix StepDialog parent reference to improve image handling functionality --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index bfebb00..f4908b9 100644 --- a/main.py +++ b/main.py @@ -501,7 +501,7 @@ class StepDialog(QtWidgets.QDialog): def add_image_to_step(self): - main_window = self.parent().parent() + main_window = self.parent() step_name = self.name_edit.text() if not step_name: QtWidgets.QMessageBox.warning(self, "Step Name Required", "Please enter a name for the step before adding an image.") @@ -577,7 +577,7 @@ class StepDialog(QtWidgets.QDialog): if idx < 0: return - main_window = self.parent().parent() + main_window = self.parent() self.hide() main_window.hide() time.sleep(0.3)