From f60a69bec4040a9bd4d5cad2d6f9cdcea322e1f3 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 10 Jan 2010 02:03:41 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/forums/CreateForumMsg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp index a107d9c89..4406e7dc1 100644 --- a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp +++ b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp @@ -66,9 +66,9 @@ void CreateForumMsg::newMsg() name += " In Reply to: "; 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); } @@ -128,6 +128,7 @@ void CreateForumMsg::createMsg() msgInfo.msgflags = RS_DISTRIB_AUTHEN_REQ; } + if ((msgInfo.msg == L"") && (msgInfo.title == L"")) return; /* do nothing */