Project/Project.py

changeset 546
c3e7bf5648be
parent 541
00e1a5d060c5
child 549
fe99d46d56c8
--- a/Project/Project.py	Thu Sep 02 08:58:41 2010 +0200
+++ b/Project/Project.py	Thu Sep 02 16:36:23 2010 +0200
@@ -2874,15 +2874,12 @@
                 if ex:
                     fn += ex
             if QFileInfo(fn).exists():
-                res = E5MessageBox.warning(self.ui,
+                res = E5MessageBox.yesNo(self.ui,
                     self.trUtf8("Save File"),
-                    self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""")
-                        .format(fn),
-                    QMessageBox.StandardButtons(\
-                        QMessageBox.Abort | \
-                        QMessageBox.Save),
-                    QMessageBox.Abort)
-                if res != QMessageBox.Save:
+                    self.trUtf8("""<p>The file <b>{0}</b> already exists."""
+                                """ Overwrite it?</p>""").format(fn),
+                    type_ = E5MessageBox.Warning)
+                if not res:
                     return False
                 
             self.name = QFileInfo(fn).baseName()

eric ide

mercurial