@@ -467,7 +467,7 @@ def _export_longitudinal_report(self, fmt: str) -> None:
467467 ReportSectionsDialog ,
468468 )
469469 dialog = LongitudinalScaleDialog (scales , self )
470- if dialog .exec () != dialog . accepted :
470+ if dialog .exec () != QDialog . Accepted :
471471 return
472472
473473 prefs = dialog .get_scale_prefs ()
@@ -480,7 +480,7 @@ def _export_longitudinal_report(self, fmt: str) -> None:
480480 ("programming_summary" , "Programming Summary" , False ),
481481 ]
482482 sec_dialog = ReportSectionsDialog (section_defs , self , title = "Report Sections" )
483- if sec_dialog .exec () != sec_dialog . accepted :
483+ if sec_dialog .exec () != QDialog . Accepted :
484484 return
485485 sections = sec_dialog .get_selected_sections ()
486486
@@ -690,7 +690,7 @@ def _export_session_report(self, fmt: str) -> None:
690690 dialog = ScaleOptimizationDialog (
691691 scales , self , title = "Scale Optimization — Session Report"
692692 )
693- if dialog .exec () != dialog . accepted :
693+ if dialog .exec () != QDialog . Accepted :
694694 return
695695
696696 prefs = dialog .get_scale_prefs ()
@@ -704,7 +704,7 @@ def _export_session_report(self, fmt: str) -> None:
704704 ("programming_summary" , "Programming Summary" , True ),
705705 ]
706706 sec_dialog = ReportSectionsDialog (section_defs , self , title = "Report Sections" )
707- if sec_dialog .exec () != sec_dialog . accepted :
707+ if sec_dialog .exec () != QDialog . Accepted :
708708 return
709709 sections = sec_dialog .get_selected_sections ()
710710
0 commit comments