Skip to content

Commit

Permalink
fixed bug with WorkflowProgressStateIdle button box trying to access …
Browse files Browse the repository at this point in the history
…a deleted object
  • Loading branch information
henryborchers committed Sep 19, 2024
1 parent 13e098d commit 086eaf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions speedwagon/frontend/qtwidgets/dialog/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ def _set_button_defaults(self) -> None:
QtWidgets.QDialogButtonBox.StandardButton.Cancel
)
cancel_button.setEnabled(False)
self.context.rejected.connect( # type: ignore
self.context.button_box.rejected # type: ignore
)
self.context.button_box.rejected.connect(self.context.rejected)

def start(self) -> None:
self.context.state = WorkflowProgressStateWorking(self.context)
Expand Down Expand Up @@ -524,6 +522,8 @@ def __init__(
self.setModal(True)
# =====================================================================
self.state: AbsWorkflowProgressState = WorkflowProgressStateIdle(self)
# self.rejected.disconnect(self.button_box.rejected)

# =====================================================================

self.finished.connect(self.remove_log_handles) # type: ignore
Expand Down

0 comments on commit 086eaf7

Please sign in to comment.