Use correct role for standardbutton

Otherwise the no won't register...

CURA-9229
This commit is contained in:
Jaime van Kessel 2022-05-04 11:07:36 +02:00
parent c3918da6a5
commit 0c98ce2384
3 changed files with 3 additions and 3 deletions

View file

@ -480,7 +480,7 @@ class CloudOutputDeviceManager:
if remove_printers_ids == all_ids:
question_content = self.i18n_catalog.i18nc("@label", "You are about to remove all printers from Cura. This action cannot be undone.\nAre you sure you want to continue?")
result = QMessageBox.question(None, question_title, question_content)
if result == QMessageBox.ButtonRole.NoRole:
if result == QMessageBox.StandardButton.No:
return
for machine_cloud_id in self.reported_device_ids: