Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-05-04 12:07:36 +0300
committerJaime van Kessel <nallath@gmail.com>2022-05-04 12:09:49 +0300
commit0c98ce23842ec29afc8c7c378702e2f1e72a5cca (patch)
tree3b51b881dc381f45dc150d73d40c14000784038e /cura
parentc3918da6a578dc162b5ed7cc573cfe3398666528 (diff)
Use correct role for standardbutton
Otherwise the no won't register... CURA-9229
Diffstat (limited to 'cura')
-rw-r--r--cura/Settings/ContainerManager.py2
-rw-r--r--cura/Settings/CuraContainerRegistry.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py
index c1b0ceeaae..67a1643d0b 100644
--- a/cura/Settings/ContainerManager.py
+++ b/cura/Settings/ContainerManager.py
@@ -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:
diff --git a/cura/Settings/CuraContainerRegistry.py b/cura/Settings/CuraContainerRegistry.py
index a72828708b..6ff856efcb 100644
--- a/cura/Settings/CuraContainerRegistry.py
+++ b/cura/Settings/CuraContainerRegistry.py
@@ -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)