IconEditor/IconEditorWindow.py

changeset 546
c3e7bf5648be
parent 545
1538031b5175
child 547
cceececd1312
diff -r 1538031b5175 -r c3e7bf5648be IconEditor/IconEditorWindow.py
--- a/IconEditor/IconEditorWindow.py	Thu Sep 02 08:58:41 2010 +0200
+++ b/IconEditor/IconEditorWindow.py	Thu Sep 02 16:36:23 2010 +0200
@@ -1001,15 +1001,12 @@
             if ex:
                 fileName += ex
         if QFileInfo(fileName).exists():
-            res = E5MessageBox.warning(self,
+            res = E5MessageBox.yesNo(self,
                 self.trUtf8("Save icon file"),
-                self.trUtf8("<p>The file <b>{0}</b> already exists.</p>")
-                    .format(fileName),
-                QMessageBox.StandardButtons(\
-                    QMessageBox.Abort | \
-                    QMessageBox.Save),
-                QMessageBox.Abort)
-            if res == QMessageBox.Abort or res == QMessageBox.Cancel:
+                self.trUtf8("<p>The file <b>{0}</b> already exists."
+                            " Overwrite it?</p>").format(fileName),
+                type_ = E5MessageBox.Warning)
+            if not res:
                 return False
         
         return self.__saveIconFile(fileName)
@@ -1223,4 +1220,4 @@
         """
         Private slot called in to enter Whats This mode.
         """
-        QWhatsThis.enterWhatsThisMode()
\ No newline at end of file
+        QWhatsThis.enterWhatsThisMode()

eric ide

mercurial