fixed to not add a new "Re:" when forum message has always one.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1991 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-10 02:03:41 +00:00
parent 3840fa24a1
commit f60a69bec4

View File

@ -66,9 +66,9 @@ void CreateForumMsg::newMsg()
name += " In Reply to: "; name += " In Reply to: ";
name += QString::fromStdWString(msg.title); name += QString::fromStdWString(msg.title);
QString text = ui.forumSubject->text(); QString text = QString::fromStdWString(msg.title);
if (text.startsWith("Re:")) if (text.startsWith("Re:", Qt::CaseInsensitive))
{ {
subj = QString::fromStdWString(msg.title); subj = QString::fromStdWString(msg.title);
} }
@ -128,6 +128,7 @@ void CreateForumMsg::createMsg()
msgInfo.msgflags = RS_DISTRIB_AUTHEN_REQ; msgInfo.msgflags = RS_DISTRIB_AUTHEN_REQ;
} }
if ((msgInfo.msg == L"") && (msgInfo.title == L"")) if ((msgInfo.msg == L"") && (msgInfo.title == L""))
return; /* do nothing */ return; /* do nothing */