mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
use real name instead hash name for partials for preview; hope to work now
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1400 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
369bb6a5c5
commit
e7b42238cb
@ -735,16 +735,7 @@ bool ftController::FileRequest(std::string fname, std::string hash,
|
||||
|
||||
{ RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
|
||||
/* extension added to partial name to made
|
||||
* possible preview of partial files from gui */
|
||||
std::string ext = "";
|
||||
int pos = fname.find_last_of('.');
|
||||
if (pos > 0) /* don't apply for hidden files with no extension */
|
||||
{
|
||||
ext = fname.substr(pos);
|
||||
}
|
||||
|
||||
savepath = mPartialsPath + "/" + hash + ext;
|
||||
savepath = mPartialsPath + "/" + fname;
|
||||
destination = dest + "/" + fname;
|
||||
|
||||
/* if no destpath - send to download directory */
|
||||
|
Loading…
Reference in New Issue
Block a user