Project/ProjectFormsBrowser.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 553
5af61623ae3c
diff -r 2631831b4052 -r 00e1a5d060c5 Project/ProjectFormsBrowser.py
--- 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
+        }

eric ide

mercurial