mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
fixed display of filename when an upload is a partially downloaded file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4629 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
086f33c1a6
commit
15758578e0
@ -422,7 +422,17 @@ bool ftServer::FileDetails(const std::string &hash, uint32_t hintflags, FileInfo
|
|||||||
|
|
||||||
if(hintflags & RS_FILE_HINTS_UPLOAD)
|
if(hintflags & RS_FILE_HINTS_UPLOAD)
|
||||||
if(mFtDataplex->FileDetails(hash, hintflags, info))
|
if(mFtDataplex->FileDetails(hash, hintflags, info))
|
||||||
|
{
|
||||||
|
// We also check if the file is a DL as well. In such a case we use
|
||||||
|
// the DL as the file name, to replace the hash. If the file is a cache
|
||||||
|
// file, we skip the call to fileDetails() for efficiency reasons.
|
||||||
|
//
|
||||||
|
FileInfo info2 ;
|
||||||
|
if( (!(info.flags & RS_FILE_HINTS_CACHE)) && mFtController->FileDetails(hash, info2))
|
||||||
|
info.fname = info2.fname ;
|
||||||
|
|
||||||
return true ;
|
return true ;
|
||||||
|
}
|
||||||
|
|
||||||
if(hintflags & ~(RS_FILE_HINTS_UPLOAD | RS_FILE_HINTS_DOWNLOAD))
|
if(hintflags & ~(RS_FILE_HINTS_UPLOAD | RS_FILE_HINTS_DOWNLOAD))
|
||||||
if(mFtSearch->search(hash, hintflags, info))
|
if(mFtSearch->search(hash, hintflags, info))
|
||||||
|
Loading…
Reference in New Issue
Block a user