mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-31 11:54:22 -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
1 changed files with 14 additions and 3 deletions
|
@ -832,9 +832,20 @@ bool CacheStrapper::loadList(std::list<RsItem *> load)
|
||||||
CacheData cd;
|
CacheData cd;
|
||||||
|
|
||||||
cd.pid = rscc->pid;
|
cd.pid = rscc->pid;
|
||||||
peerConnectState pca;
|
|
||||||
mConnMgr->getFriendNetStatus(rscc->pid, pca);
|
if(cd.pid == mConnMgr->getOwnId())
|
||||||
cd.pname = pca.name;
|
{
|
||||||
|
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.type = rscc->cachetypeid;
|
||||||
cd.cid.subid = rscc->cachesubid;
|
cd.cid.subid = rscc->cachesubid;
|
||||||
cd.path = rscc->path;
|
cd.path = rscc->path;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue