Project/ProjectResourcesBrowser.py

changeset 536
6d8d39753c82
parent 501
5c615a85241a
child 537
72b32daeb8d6
--- a/Project/ProjectResourcesBrowser.py	Mon Aug 30 19:03:34 2010 +0200
+++ b/Project/ProjectResourcesBrowser.py	Mon Aug 30 20:16:34 2010 +0200
@@ -13,6 +13,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Application import e5App
+from E5Gui import E5MessageBox
 
 from .ProjectBrowserModel import ProjectBrowserFileItem, \
     ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
@@ -521,19 +522,19 @@
                 if self.compiledFile not in self.project.pdata["SOURCES"]:
                     self.project.appendFile(ofn)
                 if not self.noDialog:
-                    QMessageBox.information(None,
+                    E5MessageBox.information(self,
                         self.trUtf8("Resource Compilation"),
                         self.trUtf8("The compilation of the resource file"
                             " was successful."))
             except IOError as msg:
                 if not self.noDialog:
-                    QMessageBox.information(None,
+                    E5MessageBox.information(self,
                         self.trUtf8("Resource Compilation"),
                         self.trUtf8("<p>The compilation of the resource file failed.</p>"
                             "<p>Reason: {0}</p>").format(str(msg)))
         else:
             if not self.noDialog:
-                QMessageBox.information(None,
+                E5MessageBox.information(self,
                     self.trUtf8("Resource Compilation"),
                     self.trUtf8("The compilation of the resource file failed."))
         self.compileProc = None
@@ -816,4 +817,4 @@
             "compileChangedResources"   : None, 
             "compileSelectedResources"  : None, 
             "newResource"               : None, 
-        }
+        }
\ No newline at end of file

eric ide

mercurial