improved peer name info in cachestrapper, gence improving dir names in file lists

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2115 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-01-23 21:38:38 +00:00
parent 0e7f9df638
commit 76cce0c7d2

View File

@ -832,9 +832,20 @@ bool CacheStrapper::loadList(std::list<RsItem *> load)
CacheData cd;
cd.pid = rscc->pid;
if(cd.pid == mConnMgr->getOwnId())
{
peerConnectState pca;
mConnMgr->getOwnNetStatus(pca);
cd.pname = pca.name+" ("+pca.location+")";
}
else
{
peerConnectState pca;
mConnMgr->getFriendNetStatus(rscc->pid, pca);
cd.pname = pca.name;
cd.pname = pca.name+" ("+pca.location+")";
}
cd.cid.type = rscc->cachetypeid;
cd.cid.subid = rscc->cachesubid;
cd.path = rscc->path;