--- a/Project/ProjectFormsBrowser.py Tue Aug 31 13:39:24 2010 +0200 +++ b/Project/ProjectFormsBrowser.py Tue Aug 31 16:38:06 2010 +0200 @@ -511,14 +511,11 @@ fname += ex if os.path.exists(fname): - res = E5MessageBox.warning(self, + res = E5MessageBox.yesNo(self, self.trUtf8("New Form"), self.trUtf8("The file already exists! Overwrite it?"), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res != QMessageBox.Yes: + type_ = E5MessageBox.Warning) + if not res: # user selected to not overwrite return @@ -903,4 +900,4 @@ "compileSelectedForms" : None, "generateDialogCode" : None, "newForm" : None, - } \ No newline at end of file + }