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

@ -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) ;