mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-14 10:19:26 -04:00
display correct group string instread of group ids in SharedFilesDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5815 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9581e83c01
commit
f1d3cf102f
1 changed files with 10 additions and 7 deletions
|
@ -205,14 +205,17 @@ QString RetroshareDirModel::getFlagsString(FileStorageFlags flags)
|
||||||
|
|
||||||
return QString(str) ;
|
return QString(str) ;
|
||||||
}
|
}
|
||||||
QString RetroshareDirModel::getGroupsString(const std::list<std::string>& groups)
|
QString RetroshareDirModel::getGroupsString(const std::list<std::string>& group_ids)
|
||||||
{
|
{
|
||||||
QString groups_str ;
|
QString groups_str ;
|
||||||
|
RsGroupInfo group_info ;
|
||||||
|
|
||||||
for(std::list<std::string>::const_iterator it(groups.begin());it!=groups.end();)
|
for(std::list<std::string>::const_iterator it(group_ids.begin());it!=group_ids.end();)
|
||||||
|
if(rsPeers->getGroupInfo(*it,group_info))
|
||||||
{
|
{
|
||||||
groups_str += QString::fromStdString(*it) ;
|
groups_str += QString::fromStdString(group_info.name) ;
|
||||||
if(++it != groups.end())
|
|
||||||
|
if(++it != group_ids.end())
|
||||||
groups_str += ", " ;
|
groups_str += ", " ;
|
||||||
}
|
}
|
||||||
return groups_str ;
|
return groups_str ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue