Project/ProjectResourcesBrowser.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 553
5af61623ae3c
diff -r 2631831b4052 -r 00e1a5d060c5 Project/ProjectResourcesBrowser.py
--- a/Project/ProjectResourcesBrowser.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/Project/ProjectResourcesBrowser.py	Tue Aug 31 16:38:06 2010 +0200
@@ -405,14 +405,11 @@
                     fname += ex
             
             if os.path.exists(fname):
-                res = E5MessageBox.warning(self,
+                res = E5MessageBox.yesNo(self,
                     self.trUtf8("New Resource"),
                     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
             
@@ -817,4 +814,4 @@
             "compileChangedResources"   : None, 
             "compileSelectedResources"  : None, 
             "newResource"               : None, 
-        }
\ No newline at end of file
+        }

eric ide

mercurial