Display for editing circles own Header Text

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7327 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-05-04 16:21:43 +00:00
parent c945aa18dd
commit 269c228241

View File

@ -99,6 +99,9 @@ void CreateCircleDialog::editExistingId(const RsGxsGroupId& circleId)
/* load this circle */
mIsExistingCircle = true;
requestCircle(circleId);
ui.headerFrame->setHeaderText(tr("Edit Circle"));
}
@ -111,10 +114,12 @@ void CreateCircleDialog::editNewId(bool isExternal)
if (isExternal)
{
setupForExternalCircle();
ui.headerFrame->setHeaderText(tr("Create New External Circle"));
}
else
{
setupForPersonalCircle();
ui.headerFrame->setHeaderText(tr("Create New Personal Circle"));
}
/* enable stuff that might be locked */
@ -125,7 +130,6 @@ void CreateCircleDialog::setupForPersonalCircle()
mIsExternalCircle = false;
/* hide distribution line */
ui.headerFrame->setHeaderText(tr("Create New Personal Circle"));
ui.groupBox_title->setTitle(tr("Personal Circle Details"));
ui.frame_PgpTypes->hide();
@ -141,8 +145,6 @@ void CreateCircleDialog::setupForExternalCircle()
mIsExternalCircle = true;
/* show distribution line */
ui.headerFrame->setHeaderText(tr("Create New External Circle"));
ui.groupBox_title->setTitle(tr("External Circle Details"));
ui.frame_PgpTypes->show();
ui.frame_Distribution->show();