QScintilla/Exporters/ExporterBase.py

changeset 546
c3e7bf5648be
parent 539
87f9bce38a44
child 553
5af61623ae3c
diff -r 1538031b5175 -r c3e7bf5648be QScintilla/Exporters/ExporterBase.py
--- a/QScintilla/Exporters/ExporterBase.py	Thu Sep 02 08:58:41 2010 +0200
+++ b/QScintilla/Exporters/ExporterBase.py	Thu Sep 02 16:36:23 2010 +0200
@@ -53,15 +53,12 @@
                 if ex:
                     fn += ex
             if QFileInfo(fn).exists():
-                res = E5MessageBox.warning(self.editor,
+                res = E5MessageBox.yesNo(self.editor,
                     self.trUtf8("Export source"),
-                    self.trUtf8("<p>The file <b>{0}</b> already exists.</p>")
-                        .format(fn),
-                    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(fn),
+                    type_ = E5MessageBox.Warning)
+                if not res:
                     return ""
             
             fn = Utilities.toNativeSeparators(fn)
@@ -74,4 +71,4 @@
         
         This method must be overridden by the real exporters.
         """
-        raise NotImplementedError
\ No newline at end of file
+        raise NotImplementedError

eric ide

mercurial