Project/Project.py

changeset 539
87f9bce38a44
parent 538
7f1a56e80124
child 541
00e1a5d060c5
diff -r 7f1a56e80124 -r 87f9bce38a44 Project/Project.py
--- a/Project/Project.py	Tue Aug 31 12:36:10 2010 +0200
+++ b/Project/Project.py	Tue Aug 31 13:23:27 2010 +0200
@@ -1753,7 +1753,7 @@
                                 os.makedirs(target)
                                 
                             if os.path.exists(targetfile):
-                                res = QMessageBox.warning(None,
+                                res = E5MessageBox.warning(self.ui,
                                     self.trUtf8("Add file"),
                                     self.trUtf8("<p>The file <b>{0}</b> already"
                                         " exists.</p><p>Overwrite it?</p>")
@@ -1831,7 +1831,7 @@
             if not Utilities.samepath(target, source):
                 try:
                     if os.path.exists(targetfile):
-                        res = QMessageBox.warning(self.ui,
+                        res = E5MessageBox.warning(self.ui,
                             self.trUtf8("Add directory"),
                             self.trUtf8("<p>The file <b>{0}</b> already exists.</p>"
                                         "<p>Overwrite it?</p>")
@@ -2024,7 +2024,7 @@
             newfn = Utilities.toNativeSeparators(newfn)
         
         if os.path.exists(newfn):
-            canceled = QMessageBox.warning(None,
+            canceled = E5MessageBox.warning(self.ui,
                 self.trUtf8("Rename File"),
                 self.trUtf8("""<p>The file <b>{0}</b> already exists."""
                             """ Overwrite it?</p>""")
@@ -2897,7 +2897,7 @@
                 if ex:
                     fn += ex
             if QFileInfo(fn).exists():
-                res = QMessageBox.warning(None,
+                res = E5MessageBox.warning(self.ui,
                     self.trUtf8("Save File"),
                     self.trUtf8("""<p>The file <b>{0}</b> already exists.</p>""")
                         .format(fn),
@@ -2937,7 +2937,7 @@
         @return flag indicating whether this operation was successful (boolean)
         """
         if self.isDirty():
-            res = QMessageBox.warning(self.parent(), 
+            res = E5MessageBox.warning(self.parent(), 
                 self.trUtf8("Close Project"),
                 self.trUtf8("The current project has unsaved changes."),
                 QMessageBox.StandardButtons(\
@@ -4475,7 +4475,7 @@
         """
         pkglist = os.path.join(self.ppath, "PKGLIST")
         if os.path.exists(pkglist):
-            res = QMessageBox.warning(None,
+            res = E5MessageBox.warning(self.ui,
                 self.trUtf8("Create Package List"),
                 self.trUtf8("<p>The file <b>PKGLIST</b> already"
                     " exists.</p><p>Overwrite it?</p>"),

eric ide

mercurial