fixed update of circle name in the GUI

This commit is contained in:
csoler 2016-03-18 22:11:07 -04:00
parent 4e0ee29d6a
commit 526a83a303
2 changed files with 18 additions and 2 deletions

View File

@ -11,6 +11,16 @@ GUI
[ ] allow to share circles publish rights
[X] allow non admin to see circles details but not edit
[ ] update TS of groups linked to a modified circle, so as to cause updates when a new member is addded to the group
[ ] forums GUI should show correct restriction options for restricted forums
[ ] changing a circle's name should update the GUI
[ ] make sure we canot post in forums using IDs that are not in the circle
[ ] make sure unauthorised ids are rejected when validating posts from a circle restricted group
[ ] add GUI for local circles in circle GUI
[ ] share publish rights between circles
[ ] clean GUI (hide IDs)
Tests
[X] create a safe testing environment: 2 peers with no other contacts, 2 IDs each, and some forums
[X] test #001: transactions should encrypt and decrypt ok on both sides
@ -27,11 +37,11 @@ Backend
Bugs
[X] Peers cannot be removed from a circle
[X] Context menu should not allow to edit non admin circles
[ ] Editing circles make them subscribed, even non admin ones.
[X] Editing circles make them subscribed, even non admin ones.
[X] Disable autosync for circles (in rsinit.cc)
[-] Add explicit circle sync request for all grps restricted to a circle (same as IDs)
[X] when a peer receives a circle, there is no way to view its details, only the id is available
[ ] if a peer has circles available in "Circles (others)"... if you click on
[X] if a peer has circles available in "Circles (others)"... if you click on
"Create Circle" on the gui, then all circles are automatically subscribed

View File

@ -395,6 +395,12 @@ void IdDialog::loadCircleGroupMeta(const uint32_t &token)
++vit ;
continue ;
}
if(item->text(CIRCLEGROUP_CIRCLE_COL_GROUPNAME) != QString::fromUtf8(vit->mGroupName.c_str()))
{
std::cerr << " Existing group has a new name. Updating it in the tree." << std::endl;
item->setText(CIRCLEGROUP_CIRCLE_COL_GROUPNAME, QString::fromUtf8(vit->mGroupName.c_str()));
}
// the item is at the right place. Just remove it from the list of items to add.
std::cerr << " item already in place. Removing from list." << std::endl;
vit = groupInfo.erase(vit) ;