--- a/MultiProject/MultiProject.py Thu Sep 02 08:58:41 2010 +0200 +++ b/MultiProject/MultiProject.py Thu Sep 02 16:36:23 2010 +0200 @@ -600,15 +600,12 @@ if ex: fn += ex if QFileInfo(fn).exists(): - res = E5MessageBox.warning(self.parent(), + res = E5MessageBox.yesNo(self.parent(), 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(fileName), + type_ = E5MessageBox.Warning) + if not res: return False self.name = QFileInfo(fn).baseName() @@ -987,4 +984,4 @@ for project in self.projects: if not project['master']: files.append(project['file']) - return files \ No newline at end of file + return files