IconEditor/IconEditorWindow.py

changeset 547
cceececd1312
parent 546
c3e7bf5648be
child 549
fe99d46d56c8
--- a/IconEditor/IconEditorWindow.py	Thu Sep 02 16:36:23 2010 +0200
+++ b/IconEditor/IconEditorWindow.py	Fri Sep 03 10:05:50 2010 +0200
@@ -1118,16 +1118,15 @@
         if self.__editor.isDirty():
             ret = E5MessageBox.warning(self,
                 self.trUtf8("eric5 Icon Editor"),
-                self.trUtf8("""The icon image has been modified.\n"""
-                            """Do you want to save your changes?"""),
+                self.trUtf8("""The icon image has unsaved changes."""),
                 QMessageBox.StandardButtons(\
-                    QMessageBox.Cancel | \
-                    QMessageBox.No | \
-                    QMessageBox.Yes),
-                QMessageBox.Cancel)
-            if ret == QMessageBox.Yes:
+                    QMessageBox.Abort | \
+                    QMessageBox.Discard | \
+                    QMessageBox.Save),
+                QMessageBox.Save)
+            if ret == QMessageBox.Save:
                 return self.__saveIcon()
-            elif ret == QMessageBox.Cancel:
+            elif ret == QMessageBox.Abort:
                 return False
         return True
     

eric ide

mercurial