mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 13:19:07 -04:00
fixed load/save of new group ids and backward compatibility with FriendList
This commit is contained in:
parent
01c0d2f0f1
commit
269f9457be
7 changed files with 124 additions and 40 deletions
|
@ -217,7 +217,17 @@ void FriendList::processSettings(bool load)
|
|||
int arrayIndex = Settings->beginReadArray("Groups");
|
||||
for (int index = 0; index < arrayIndex; ++index) {
|
||||
Settings->setArrayIndex(index);
|
||||
addGroupToExpand(RsNodeGroupId(Settings->value("open").toString().toStdString()));
|
||||
|
||||
std::string gids = Settings->value("open").toString().toStdString();
|
||||
|
||||
RsGroupInfo ginfo ;
|
||||
|
||||
if(rsPeers->getGroupInfoByName(gids,ginfo)) // backward compatibility
|
||||
addGroupToExpand(ginfo.id) ;
|
||||
else if(rsPeers->getGroupInfo(RsNodeGroupId(gids),ginfo)) // backward compatibility
|
||||
addGroupToExpand(ginfo.id) ;
|
||||
else
|
||||
std::cerr << "(EE) Cannot find group info for openned group \"" << gids << "\"" << std::endl;
|
||||
}
|
||||
Settings->endArray();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue