Fixed update of the shared files list after removing files.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6993 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-01-06 23:12:36 +00:00
parent 2dcf0acef3
commit 5fd1c68f9d
2 changed files with 18 additions and 5 deletions

View file

@ -859,6 +859,8 @@ void FileIndexMonitor::updateCycle()
cb->notifyHashingInfo(NOTIFY_HASHTYPE_FINISH, "") ;
int cleanedCount = 0;
{ /* LOCKED DIRS */
RsStackMutex stack(fiMutex); /**** LOCKED DIRS ****/
@ -866,7 +868,7 @@ void FileIndexMonitor::updateCycle()
* have not had their timestamps updated.
*/
fi.cleanOldEntries(startstamp) ;
cleanedCount = fi.cleanOldEntries(startstamp) ;
#ifdef FIM_DEBUG
/* print out the new directory structure */
@ -901,6 +903,11 @@ void FileIndexMonitor::updateCycle()
hashCache.save() ;
}
}
if (cleanedCount > 0) {
// cb->notifyListPreChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
cb->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
}
}
static std::string friendlyUnit(uint64_t val)