patch from AC to perform html optimization of forum posts using the canonical function optimizeHtml()

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5847 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-11-19 21:35:48 +00:00
parent e6563eba52
commit 93501bdc12
3 changed files with 9 additions and 8 deletions

View file

@ -353,8 +353,6 @@ void ForumMsgItem::sendMsg()
return;
}
QString desc = textEdit->toHtml();
if(textEdit->toPlainText().isEmpty())
{ /* error message */
QMessageBox::warning(this, "RetroShare",tr("Please give a Text Message"),
@ -382,6 +380,9 @@ void ForumMsgItem::sendMsg()
msgInfo.title = L"Re: " + msg.title;
}
QString desc;
RsHtml::optimizeHtml(textEdit, desc);
msgInfo.msg = desc.toStdWString();
msgInfo.msgflags = 0;