not calling IndicateConfigChange() when cancelling a cache file

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.5@7153 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-02-27 18:16:54 +00:00
parent 50317d935d
commit a2f5cd0acf

View file

@ -1390,6 +1390,8 @@ bool ftController::FileCancel(const std::string& hash)
std::cerr << "ftController::FileCancel" << std::endl; std::cerr << "ftController::FileCancel" << std::endl;
#endif #endif
/*check if the file in the download map*/ /*check if the file in the download map*/
TransferRequestFlags flags ;
{ {
RsStackMutex mtx(ctrlMutex) ; RsStackMutex mtx(ctrlMutex) ;
@ -1402,6 +1404,7 @@ bool ftController::FileCancel(const std::string& hash)
#endif #endif
return false; return false;
} }
flags = mit->second->mFlags ;
/* check if finished */ /* check if finished */
if ((mit->second)->mCreator->finished()) if ((mit->second)->mCreator->finished())
@ -1461,7 +1464,9 @@ bool ftController::FileCancel(const std::string& hash)
mDownloads.erase(mit); mDownloads.erase(mit);
} }
IndicateConfigChanged(); /* completed transfer -> save */ if(! (flags & RS_FILE_REQ_CACHE) )
IndicateConfigChanged(); /* completed transfer -> save */
return true; return true;
} }