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