mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
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:
parent
d164428bf9
commit
f511786a6a
1 changed files with 1 additions and 0 deletions
|
@ -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 formattedMessage = RsHtml().formatText(ui.msgText->document(), message, formatTextFlag, backgroundColor, desiredContrast);
|
||||||
QString formatMsg = style.formatMessage(type, name, incoming ? recvTime : sendTime, formattedMessage);
|
QString formatMsg = style.formatMessage(type, name, incoming ? recvTime : sendTime, formattedMessage);
|
||||||
|
|
||||||
|
ui.msgText->textCursor().setBlockFormat(QTextBlockFormat ());
|
||||||
ui.msgText->append(formatMsg);
|
ui.msgText->append(formatMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue