Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified icons/logoneutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def create_new_file(self) -> None:
buttons.rejected.connect(dialog.reject)
layout.addRow(buttons)

if dialog.exec() != QDialog.accepted:
if dialog.exec() != QDialog.Accepted:
return

patient_id = patient_edit.text().strip() or "01"
Expand Down
2 changes: 1 addition & 1 deletion src/clinical_dbs_annotator/views/step1_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ def create_new_file(self) -> None:
buttons.rejected.connect(dialog.reject)
layout.addRow(buttons)

if dialog.exec() != QDialog.accepted:
if dialog.exec() != QDialog.Accepted:
return

patient_id = patient_edit.text().strip() or "01"
Expand Down
8 changes: 4 additions & 4 deletions src/clinical_dbs_annotator/views/wizard_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def _export_longitudinal_report(self, fmt: str) -> None:
ReportSectionsDialog,
)
dialog = LongitudinalScaleDialog(scales, self)
if dialog.exec() != dialog.accepted:
if dialog.exec() != QDialog.Accepted:
return

prefs = dialog.get_scale_prefs()
Expand All @@ -480,7 +480,7 @@ def _export_longitudinal_report(self, fmt: str) -> None:
("programming_summary", "Programming Summary", False),
]
sec_dialog = ReportSectionsDialog(section_defs, self, title="Report Sections")
if sec_dialog.exec() != sec_dialog.accepted:
if sec_dialog.exec() != QDialog.Accepted:
return
sections = sec_dialog.get_selected_sections()

Expand Down Expand Up @@ -690,7 +690,7 @@ def _export_session_report(self, fmt: str) -> None:
dialog = ScaleOptimizationDialog(
scales, self, title="Scale Optimization — Session Report"
)
if dialog.exec() != dialog.accepted:
if dialog.exec() != QDialog.Accepted:
return

prefs = dialog.get_scale_prefs()
Expand All @@ -704,7 +704,7 @@ def _export_session_report(self, fmt: str) -> None:
("programming_summary", "Programming Summary", True),
]
sec_dialog = ReportSectionsDialog(section_defs, self, title="Report Sections")
if sec_dialog.exec() != sec_dialog.accepted:
if sec_dialog.exec() != QDialog.Accepted:
return
sections = sec_dialog.get_selected_sections()

Expand Down