diff -r 1538031b5175 -r c3e7bf5648be UI/DiffDialog.py --- a/UI/DiffDialog.py Thu Sep 02 08:58:41 2010 +0200 +++ b/UI/DiffDialog.py Thu Sep 02 16:36:23 2010 +0200 @@ -286,15 +286,12 @@ if ex: fileName += ex if QFileInfo(fname).exists(): - res = E5MessageBox.warning(self, + res = E5MessageBox.yesNo(self, self.trUtf8("Save Diff"), - self.trUtf8("<p>The patch file <b>{0}</b> already exists.</p>") - .format(fname), - QMessageBox.StandardButtons(\ - QMessageBox.Abort | \ - QMessageBox.Save), - QMessageBox.Abort) - if res != QMessageBox.Save: + self.trUtf8("<p>The patch file <b>{0}</b> already exists." + " Overwrite it?</p>").format(fname), + type_ = E5MessageBox.Warning) + if not res: return fname = Utilities.toNativeSeparators(fname) @@ -512,4 +509,4 @@ QApplication.exit() return True - return False \ No newline at end of file + return False