From a2f5cd0acff98513aad2522a8eadeb532eedc50c Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 27 Feb 2014 18:16:54 +0000 Subject: [PATCH] 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 --- libretroshare/src/ft/ftcontroller.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index bf51d42b7..59453257d 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -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; }