Skip to content

Commit b5e8686

Browse files
author
Jonathan Warren
committed
Merge pull request Bitmessage#361 from corebob/master
Fixed a problem with sticky bold fonts
2 parents 22661a1 + 6a44ded commit b5e8686

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/bitmessageqt/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,11 @@ def sentSearchLineEditPressed(self):
28202820
def tableWidgetInboxItemClicked(self):
28212821
currentRow = self.ui.tableWidgetInbox.currentRow()
28222822
if currentRow >= 0:
2823+
2824+
font = QFont()
2825+
font.setBold(False)
2826+
self.ui.textEditInboxMessage.setCurrentFont(font)
2827+
28232828
fromAddress = str(self.ui.tableWidgetInbox.item(
28242829
currentRow, 1).data(Qt.UserRole).toPyObject())
28252830
# If we have received this message from either a broadcast address
@@ -2838,9 +2843,7 @@ def tableWidgetInboxItemClicked(self):
28382843
else:
28392844
self.ui.textEditInboxMessage.setPlainText(self.ui.tableWidgetInbox.item(currentRow, 2).data(Qt.UserRole).toPyObject()[
28402845
:30000] + '\n\nDisplay of the remainder of the message truncated because it is too long.') # Only show the first 30K characters
2841-
2842-
font = QFont()
2843-
font.setBold(False)
2846+
28442847
self.ui.tableWidgetInbox.item(currentRow, 0).setFont(font)
28452848
self.ui.tableWidgetInbox.item(currentRow, 1).setFont(font)
28462849
self.ui.tableWidgetInbox.item(currentRow, 2).setFont(font)

0 commit comments

Comments
 (0)