mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-19 20:34:49 -04:00
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:
parent
e6563eba52
commit
93501bdc12
3 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue