--- 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