mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
0e7f9df638
commit
76cce0c7d2
@ -832,9 +832,20 @@ bool CacheStrapper::loadList(std::list<RsItem *> load)
|
||||
CacheData cd;
|
||||
|
||||
cd.pid = rscc->pid;
|
||||
peerConnectState pca;
|
||||
mConnMgr->getFriendNetStatus(rscc->pid, pca);
|
||||
cd.pname = pca.name;
|
||||
|
||||
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+" ("+pca.location+")";
|
||||
}
|
||||
|
||||
cd.cid.type = rscc->cachetypeid;
|
||||
cd.cid.subid = rscc->cachesubid;
|
||||
cd.path = rscc->path;
|
||||
|
Loading…
Reference in New Issue
Block a user