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

@ -206,7 +206,7 @@ class ContainerManager(QObject):
if os.path.exists(file_url):
result = QMessageBox.question(None, catalog.i18nc("@title:window", "File Already Exists"),
catalog.i18nc("@label Don't translate the XML tag <filename>!", "The file <filename>{0}</filename> already exists. Are you sure you want to overwrite it?").format(file_url))
if result == QMessageBox.ButtonRole.NoRole:
if result == QMessageBox.StandardButton.No:
return {"status": "cancelled", "message": "User cancelled"}
try: