diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 9543503f..dd67d211 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2583,19 +2583,22 @@ class MyForm(QtGui.QMainWindow): '''select message from inbox where msgid=?''', msgid) if queryreturn != []: for row in queryreturn: - messageAtCurrentInboxRow, = row + messageText, = row - lines = messageAtCurrentInboxRow.split('\n') - for i in xrange(len(lines)): + lines = messageText.split('\n') + totalLines = len(lines) + for i in xrange(totalLines): if 'Message ostensibly from ' in lines[i]: lines[i] = '
%s
' % ( lines[i]) elif lines[i] == '------------------------------------------------------': lines[i] = '