--- a/UI/EmailDialog.py Mon Aug 30 20:16:34 2010 +0200 +++ b/UI/EmailDialog.py Tue Aug 31 12:17:02 2010 +0200 @@ -15,6 +15,8 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * +from E5Gui import E5MessageBox + from .Ui_EmailDialog import Ui_EmailDialog from .Info import BugAddress, FeatureAddress @@ -288,7 +290,7 @@ server.login(Preferences.getUser("MailServerUser"), password) except (smtplib.SMTPException, socket.error) as e: - res = QMessageBox.critical(self, + res = E5MessageBox.critical(self, self.trUtf8("Send bug report"), self.trUtf8("""<p>Authentication failed.<br>Reason: {0}</p>""") .format(str(e)), @@ -308,7 +310,7 @@ QApplication.restoreOverrideCursor() except (smtplib.SMTPException, socket.error) as e: QApplication.restoreOverrideCursor() - res = QMessageBox.critical(self, + res = E5MessageBox.critical(self, self.trUtf8("Send bug report"), self.trUtf8("""<p>Message could not be sent.<br>Reason: {0}</p>""") .format(str(e)), @@ -380,4 +382,4 @@ """ self.sendButton.setEnabled(\ self.subject.text() != "" and \ - self.message.toPlainText() != "") + self.message.toPlainText() != "") \ No newline at end of file