Gui modifications to support authenticated forums.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@868 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-12-06 00:30:56 +00:00
parent 1efe8a2cb1
commit 3d4920f73f
4 changed files with 46 additions and 8 deletions

View file

@ -63,7 +63,7 @@ void CreateForum::newForum()
ui.typeEncrypted->setEnabled(false);
ui.msgAnon->setChecked(true);
ui.msgAuth->setEnabled(false);
//ui.msgAuth->setEnabled(false);
}
else
{

View file

@ -65,6 +65,18 @@ void CreateForumMsg::newMsg()
ui.forumName->setText(name);
ui.forumSubject->setText(subj);
if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ)
{
ui.signBox->setChecked(true);
//ui.signBox->setEnabled(false);
// For Testing.
ui.signBox->setEnabled(true);
}
else
{
ui.signBox->setEnabled(true);
}
}
ui.forumMessage->setText("");
@ -86,6 +98,11 @@ void CreateForumMsg::createMsg()
msgInfo.title = name.toStdWString();
msgInfo.msg = desc.toStdWString();
if (ui.signBox->isChecked())
{
msgInfo.msgflags = RS_DISTRIB_AUTHEN_REQ;
}
if ((msgInfo.msg == L"") && (msgInfo.title == L""))
return; /* do nothing */