properly reset cursor block format in FriendsDialog (Patch from phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-11-29 18:46:18 +00:00
parent d164428bf9
commit f511786a6a

View File

@ -482,6 +482,7 @@ void FriendsDialog::addChatMsg(bool incoming, bool history, const QString &name,
QString formattedMessage = RsHtml().formatText(ui.msgText->document(), message, formatTextFlag, backgroundColor, desiredContrast);
QString formatMsg = style.formatMessage(type, name, incoming ? recvTime : sendTime, formattedMessage);
ui.msgText->textCursor().setBlockFormat(QTextBlockFormat ());
ui.msgText->append(formatMsg);
}