From 6a44ded7fc561471e15274e5f7b99bace93796cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag=20Rob=C3=B8le?= Date: Thu, 1 Aug 2013 19:01:07 +0200 Subject: [PATCH] Fixed a problem with sticky bold fonts --- src/bitmessageqt/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 1d115af1..71da6c68 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2820,6 +2820,11 @@ class MyForm(QtGui.QMainWindow): def tableWidgetInboxItemClicked(self): currentRow = self.ui.tableWidgetInbox.currentRow() if currentRow >= 0: + + font = QFont() + font.setBold(False) + self.ui.textEditInboxMessage.setCurrentFont(font) + fromAddress = str(self.ui.tableWidgetInbox.item( currentRow, 1).data(Qt.UserRole).toPyObject()) # If we have received this message from either a broadcast address @@ -2838,9 +2843,7 @@ class MyForm(QtGui.QMainWindow): else: self.ui.textEditInboxMessage.setPlainText(self.ui.tableWidgetInbox.item(currentRow, 2).data(Qt.UserRole).toPyObject()[ :30000] + '\n\nDisplay of the remainder of the message truncated because it is too long.') # Only show the first 30K characters - - font = QFont() - font.setBold(False) + self.ui.tableWidgetInbox.item(currentRow, 0).setFont(font) self.ui.tableWidgetInbox.item(currentRow, 1).setFont(font) self.ui.tableWidgetInbox.item(currentRow, 2).setFont(font)