mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 21:55:15 -05:00
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:
parent
3840fa24a1
commit
f60a69bec4
@ -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 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user