diff --git a/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp b/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp index 22e0a8cb0..062de1814 100644 --- a/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp +++ b/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp @@ -376,6 +376,8 @@ void GxsGroupDialog::setupVisibility() ui.pubKeyShare_cb->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_SHAREKEYS); ui.addAdmins_cb->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_ADDADMINS); + ui.label_8->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_ADDADMINS); + ui.moderatorsLabel->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_ADDADMINS); ui.personalGroupBox->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_PERSONALSIGN); @@ -867,6 +869,21 @@ void GxsGroupDialog::getSelectedModerators(std::set& ids) void GxsGroupDialog::setSelectedModerators(const std::set& ids) { ui.adminsList->setSelectedIds(ids, false); + + QString moderatorsListString ; + RsIdentityDetails det; + + for(auto it(ids.begin());it!=ids.end();++it) + { + rsIdentity->getIdDetails(*it,det); + + if(!moderatorsListString.isNull()) + moderatorsListString += ", " ; + + moderatorsListString += det.mNickname.empty()?("[Unknown]"):QString::fromStdString(det.mNickname) ; + } + + ui.moderatorsLabel->setText(moderatorsListString); } /*********************************************************************************** diff --git a/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui b/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui index d61752c5c..56519718e 100644 --- a/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui +++ b/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui @@ -7,7 +7,7 @@ 0 0 1237 - 1145 + 1189 @@ -44,7 +44,7 @@ QFrame::Raised - 0 + 1 @@ -596,150 +596,168 @@ Info - - - - - Name - - - - - - - true - - - - - - - Popularity - - - - - - - true - - - - - - - Posts - - - - - - - - - - true - - - - - - - Last Post - - - - - - - true - - - - - - - Author - - - - - - - GxsIdLabel - - - - - - - ID - - - - - - - true - - - - - - - Comments: - - - - - - - TextLabel - - - - - - - + + + + + + + Moderators: + + + + + + + + + TextLabel + + + + + + + + 0 + 0 + + + + + + + + + + + + + true + + + + + + + true + + + + + + + Posts + + + + + + + GxsIdLabel + + + + + + + ID + + + + + + + true + + + + + + + Author + + + + + TextLabel - - - - - 0 - 0 - + + + + true + + + + + + + Comments: + + + + + + + TextLabel + + + + + + + Distribution: + + + + + + + Anti Spam: + + + + + + + Last Post + + + + + + + Name + + + + + + + Popularity + + + + + + + true + + + + + + + TextLabel - - - - Distribution: - - - - - - - Anti Spam: - - - - - - - TextLabel - - -