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

@ -139,7 +139,7 @@ class CuraContainerRegistry(ContainerRegistry):
if os.path.exists(file_name):
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_name))
if result == QMessageBox.ButtonRole.NoRole:
if result == QMessageBox.StandardButton.No:
return False
profile_writer = self._findProfileWriter(extension, description)