UI/UserInterface.py

changeset 553
5af61623ae3c
parent 545
1538031b5175
child 564
b3d966393ba9
--- a/UI/UserInterface.py	Fri Sep 03 18:53:24 2010 +0200
+++ b/UI/UserInterface.py	Fri Sep 03 20:04:49 2010 +0200
@@ -2781,12 +2781,11 @@
         if Preferences.getUI("CheckErrorLog"):
             logFile = os.path.join(Utilities.getConfigDir(), "eric5_error.log")
             if os.path.exists(logFile):
-                dlg = QMessageBox(QMessageBox.Question, 
+                dlg = E5MessageBox.E5MessageBox(E5MessageBox.Question, 
                     self.trUtf8("Error log found"), 
                     self.trUtf8("An error log file was found. "
-                                "What should be done with it?"))
-                dlg.setParent(self)
-                dlg.setWindowModality(Qt.WindowModal)
+                                "What should be done with it?"), 
+                    modal = True, parent = self)
                 try:
                     f = open(logFile, "r", encoding = "utf-8")
                     txt = f.read()
@@ -2796,13 +2795,13 @@
                     pass
                 emailButton = \
                     dlg.addButton(self.trUtf8("Send Bug Email"), 
-                                  QMessageBox.AcceptRole)
+                                  E5MessageBox.AcceptRole)
                 deleteButton = \
                     dlg.addButton(self.trUtf8("Ignore and Delete"), 
-                                  QMessageBox.AcceptRole)
+                                  E5MessageBox.AcceptRole)
                 keepButton = \
                     dlg.addButton(self.trUtf8("Ignore but Keep"), 
-                                  QMessageBox.AcceptRole)
+                                  E5MessageBox.AcceptRole)
                 dlg.setDefaultButton(emailButton)
                 dlg.setEscapeButton(keepButton)
                 dlg.exec_()
@@ -5611,7 +5610,7 @@
                         """<p>{0}</p>"""
                         """<p>Do you want to ignore these errors?</p>""")\
                 .format(errorString),
-            type_ = E5MessageBox.Warning)
+            icon = E5MessageBox.Warning)
         if ret:
             reply.ignoreSslErrors()
         else:
@@ -5686,4 +5685,4 @@
         if self.__startup:
             if Preferences.getGeometry("MainMaximized"):
                 self.setWindowState(Qt.WindowStates(Qt.WindowMaximized))
-            self.__startup = False
\ No newline at end of file
+            self.__startup = False

eric ide

mercurial