Fix the number of files displayed in the file browser tab title being wrong after removal of a file by an external actor.

This commit is contained in:
Adam Reichold
2015-11-12 22:17:28 +01:00
parent 13febd8009
commit 6b52742d84

View File

@@ -1721,6 +1721,11 @@ void FileCatalog::reparseDirectory ()
for (size_t i = 0; i < fileNamesToDel.size(); i++) {
delete fileBrowser->delEntry (fileNamesToDel[i]);
cacheMgr->deleteEntry (fileNamesToDel[i]);
previewsLoaded--;
}
if (!fileNamesToDel.empty ()) {
_refreshProgressBar();
}
// check if a new file has been added