diff options
author | Remco Burema <r.burema@ultimaker.com> | 2021-12-29 11:30:48 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2021-12-29 11:30:48 +0300 |
commit | 9d7b1e49ee3799a74d4607a5945270655cf29e18 (patch) | |
tree | 2aab655f25c9b178a4ffb1f112351d63433a19a4 /cura/CrashHandler.py | |
parent | 6586bcc762a00b7a00a6f136ffc18b55f22bf6bc (diff) |
Qt5->Qt6: Make CrashHandler window show up again.
part of CURA-8591
Diffstat (limited to 'cura/CrashHandler.py')
-rw-r--r-- | cura/CrashHandler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 4f3fb34f7f..563755f6d4 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -136,8 +136,8 @@ class CrashHandler: # "backup and start clean" and "close" buttons buttons = QDialogButtonBox() - buttons.addButton(QDialogButtonBox.Close) - buttons.addButton(catalog.i18nc("@action:button", "Backup and Reset Configuration"), QDialogButtonBox.AcceptRole) + buttons.addButton(QDialogButtonBox.StandardButton.Close) + buttons.addButton(catalog.i18nc("@action:button", "Backup and Reset Configuration"), QDialogButtonBox.ButtonRole.AcceptRole) buttons.rejected.connect(self._closeEarlyCrashDialog) buttons.accepted.connect(self._backupAndStartClean) @@ -409,12 +409,12 @@ class CrashHandler: def _buttonsWidget(self): buttons = QDialogButtonBox() - buttons.addButton(QDialogButtonBox.Close) + buttons.addButton(QDialogButtonBox.StandardButton.Close) # Like above, this will be served as a separate detailed report dialog if the application has not yet been # fully loaded. In this case, "send report" will be a check box in the early crash dialog, so there is no # need for this extra button. if self.has_started: - buttons.addButton(catalog.i18nc("@action:button", "Send report"), QDialogButtonBox.AcceptRole) + buttons.addButton(catalog.i18nc("@action:button", "Send report"), QDialogButtonBox.ButtonRole.AcceptRole) buttons.accepted.connect(self._sendCrashReport) buttons.rejected.connect(self.dialog.close) |