Cooperation/ChatWidget.py

changeset 537
72b32daeb8d6
parent 501
5c615a85241a
child 539
87f9bce38a44
diff -r 6d8d39753c82 -r 72b32daeb8d6 Cooperation/ChatWidget.py
--- a/Cooperation/ChatWidget.py	Mon Aug 30 20:16:34 2010 +0200
+++ b/Cooperation/ChatWidget.py	Tue Aug 31 12:17:02 2010 +0200
@@ -12,6 +12,7 @@
     QMessageBox, QApplication
 
 from E5Gui.E5Application import e5App
+from E5Gui import E5MessageBox
 
 from Globals import recentNameHosts
 
@@ -560,7 +561,7 @@
                     f.write(txt)
                     f.close()
                 except IOError as err:
-                    QMessageBox.critical(self,
+                    E5MessageBox.critical(self,
                         self.trUtf8("Error saving Chat"),
                         self.trUtf8("""<p>The chat contents could not be written"""
                                     """ to <b>{0}</b></p><p>Reason: {1}</p>""")\
@@ -671,4 +672,4 @@
             QDateTime.currentDateTime().toString(Qt.SystemLocaleLongDate) + ":")
         self.chatEdit.append(self.trUtf8("* {0} has been banned and kicked.\n").format(
             itm.text().split(":")[0]))
-        self.chatEdit.setTextColor(color)
+        self.chatEdit.setTextColor(color)
\ No newline at end of file

eric ide

mercurial