mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-03 02:27:08 -04:00
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:
parent
50317d935d
commit
a2f5cd0acf
1 changed files with 6 additions and 1 deletions
|
@ -1390,6 +1390,8 @@ bool ftController::FileCancel(const std::string& hash)
|
|||
std::cerr << "ftController::FileCancel" << std::endl;
|
||||
#endif
|
||||
/*check if the file in the download map*/
|
||||
TransferRequestFlags flags ;
|
||||
|
||||
|
||||
{
|
||||
RsStackMutex mtx(ctrlMutex) ;
|
||||
|
@ -1402,6 +1404,7 @@ bool ftController::FileCancel(const std::string& hash)
|
|||
#endif
|
||||
return false;
|
||||
}
|
||||
flags = mit->second->mFlags ;
|
||||
|
||||
/* check if finished */
|
||||
if ((mit->second)->mCreator->finished())
|
||||
|
@ -1461,7 +1464,9 @@ bool ftController::FileCancel(const std::string& hash)
|
|||
mDownloads.erase(mit);
|
||||
}
|
||||
|
||||
IndicateConfigChanged(); /* completed transfer -> save */
|
||||
if(! (flags & RS_FILE_REQ_CACHE) )
|
||||
IndicateConfigChanged(); /* completed transfer -> save */
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue