mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
remove subitems in circles member list when they are gone from cache
This commit is contained in:
parent
e1d2f4b917
commit
8b5e43f2b0
@ -536,7 +536,16 @@ void IdDialog::loadCircleGroupMeta(const uint32_t &token)
|
|||||||
#ifdef ID_DEBUG
|
#ifdef ID_DEBUG
|
||||||
std::cerr << " updating status of all identities for this circle:" << std::endl;
|
std::cerr << " updating status of all identities for this circle:" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
//for(std::list<RsGxsId>::const_iterator it(own_identities.begin());it!=own_identities.end();++it)
|
// remove any identity that has an item, but no subscription flag entry
|
||||||
|
std::vector<QTreeWidgetItem*> to_delete ;
|
||||||
|
|
||||||
|
for(uint32_t k=0;k<item->childCount();++k)
|
||||||
|
if(details.mSubscriptionFlags.find(RsGxsId(item->child(k)->data(CIRCLEGROUP_CIRCLE_COL_GROUPID,Qt::UserRole).toString().toStdString())) == details.mSubscriptionFlags.end())
|
||||||
|
to_delete.push_back(item->child(k));
|
||||||
|
|
||||||
|
for(uint32_t k=0;k<to_delete.size();++k)
|
||||||
|
delete to_delete[k] ;
|
||||||
|
|
||||||
for(std::map<RsGxsId,uint32_t>::const_iterator it(details.mSubscriptionFlags.begin());it!=details.mSubscriptionFlags.end();++it)
|
for(std::map<RsGxsId,uint32_t>::const_iterator it(details.mSubscriptionFlags.begin());it!=details.mSubscriptionFlags.end();++it)
|
||||||
{
|
{
|
||||||
#ifdef ID_DEBUG
|
#ifdef ID_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user