mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 22:32:34 -04:00
- fixed copy/paste of RS links in public and private chat
- cleaned the code for anchorClick() in private chat - added return false for FileRequest of already have files - suppressed sources when the file is complete, in TransfersDialog. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2574 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e9c7570009
commit
8305fe0bf7
7 changed files with 143 additions and 87 deletions
|
@ -930,6 +930,11 @@ bool ftController::FileRequest(std::string fname, std::string hash,
|
|||
uint64_t size, std::string dest, uint32_t flags,
|
||||
std::list<std::string> &srcIds)
|
||||
{
|
||||
/* check if we have the file */
|
||||
|
||||
if(alreadyHaveFile(hash))
|
||||
return false ;
|
||||
|
||||
if(size == 0) // we treat this special case because
|
||||
{
|
||||
/* if no destpath - send to download directory */
|
||||
|
@ -968,11 +973,6 @@ bool ftController::FileRequest(std::string fname, std::string hash,
|
|||
}
|
||||
}
|
||||
|
||||
/* check if we have the file */
|
||||
|
||||
if(alreadyHaveFile(hash))
|
||||
return true ;
|
||||
|
||||
FileInfo info;
|
||||
std::list<std::string>::iterator it;
|
||||
std::list<TransferInfo>::iterator pit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue