mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
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:
parent
1efe8a2cb1
commit
3d4920f73f
4 changed files with 46 additions and 8 deletions
|
@ -63,7 +63,7 @@ void CreateForum::newForum()
|
|||
ui.typeEncrypted->setEnabled(false);
|
||||
|
||||
ui.msgAnon->setChecked(true);
|
||||
ui.msgAuth->setEnabled(false);
|
||||
//ui.msgAuth->setEnabled(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue