From e7b42238cb0629eaa26da5e9513f537d91203c49 Mon Sep 17 00:00:00 2001 From: alexandrut Date: Tue, 21 Jul 2009 21:37:51 +0000 Subject: [PATCH] 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 --- libretroshare/src/ft/ftcontroller.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index 83e2ec2e8..439e78e5f 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -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 */