mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
e82fab4ba4
commit
5dd70010ea
@ -39,19 +39,8 @@ CreateForum::CreateForum(QWidget *parent)
|
||||
connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createForum( ) ) );
|
||||
|
||||
newForum();
|
||||
|
||||
}
|
||||
|
||||
void CreateForum::show()
|
||||
{
|
||||
//loadSettings();
|
||||
if(!this->isVisible()) {
|
||||
QWidget::show();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CreateForum::newForum()
|
||||
{
|
||||
/* enforce Public for the moment */
|
||||
@ -60,6 +49,11 @@ void CreateForum::newForum()
|
||||
ui.typePrivate->setEnabled(false);
|
||||
ui.typeEncrypted->setEnabled(false);
|
||||
|
||||
#ifdef RS_RELEASE_VERSION
|
||||
ui.typePrivate->setVisible(false);
|
||||
ui.typeEncrypted->setVisible(false);
|
||||
#endif
|
||||
|
||||
ui.msgAnon->setChecked(true);
|
||||
//ui.msgAuth->setEnabled(false);
|
||||
|
||||
@ -75,10 +69,9 @@ void CreateForum::createForum()
|
||||
|
||||
if(name.isEmpty())
|
||||
{ /* error message */
|
||||
QMessageBox::warning(this, tr("RetroShare"),
|
||||
tr("Please add a Name"),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
|
||||
QMessageBox::warning(this, "RetroShare",
|
||||
tr("Please add a Name"),
|
||||
QMessageBox::Ok, QMessageBox::Ok);
|
||||
return; //Don't add a empty name!!
|
||||
}
|
||||
else
|
||||
@ -111,13 +104,10 @@ void CreateForum::createForum()
|
||||
}
|
||||
|
||||
close();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
void CreateForum::cancelForum()
|
||||
{
|
||||
close();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -39,10 +39,6 @@ void newForum(); /* cleanup */
|
||||
|
||||
QPixmap picture;
|
||||
|
||||
public slots:
|
||||
/** Overloaded QWidget.show */
|
||||
void show();
|
||||
|
||||
private slots:
|
||||
|
||||
/* actions to take.... */
|
||||
|
Loading…
Reference in New Issue
Block a user