Hide the types "Restricted" and "Private" in CreateForum for the release version.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3819 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-18 22:51:40 +00:00
parent e82fab4ba4
commit 5dd70010ea
2 changed files with 8 additions and 22 deletions

View File

@ -39,19 +39,8 @@ CreateForum::CreateForum(QWidget *parent)
connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createForum( ) ) ); connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createForum( ) ) );
newForum(); newForum();
} }
void CreateForum::show()
{
//loadSettings();
if(!this->isVisible()) {
QWidget::show();
}
}
void CreateForum::newForum() void CreateForum::newForum()
{ {
/* enforce Public for the moment */ /* enforce Public for the moment */
@ -60,6 +49,11 @@ void CreateForum::newForum()
ui.typePrivate->setEnabled(false); ui.typePrivate->setEnabled(false);
ui.typeEncrypted->setEnabled(false); ui.typeEncrypted->setEnabled(false);
#ifdef RS_RELEASE_VERSION
ui.typePrivate->setVisible(false);
ui.typeEncrypted->setVisible(false);
#endif
ui.msgAnon->setChecked(true); ui.msgAnon->setChecked(true);
//ui.msgAuth->setEnabled(false); //ui.msgAuth->setEnabled(false);
@ -75,10 +69,9 @@ void CreateForum::createForum()
if(name.isEmpty()) if(name.isEmpty())
{ /* error message */ { /* error message */
QMessageBox::warning(this, tr("RetroShare"), QMessageBox::warning(this, "RetroShare",
tr("Please add a Name"), tr("Please add a Name"),
QMessageBox::Ok, QMessageBox::Ok); QMessageBox::Ok, QMessageBox::Ok);
return; //Don't add a empty name!! return; //Don't add a empty name!!
} }
else else
@ -111,13 +104,10 @@ void CreateForum::createForum()
} }
close(); close();
return;
} }
void CreateForum::cancelForum() void CreateForum::cancelForum()
{ {
close(); close();
return;
} }

View File

@ -39,10 +39,6 @@ void newForum(); /* cleanup */
QPixmap picture; QPixmap picture;
public slots:
/** Overloaded QWidget.show */
void show();
private slots: private slots:
/* actions to take.... */ /* actions to take.... */