Merge pull request #378 from PhenomRetroShare/Fix_CasenDirResetedBefore

Fix in case nDir was reset before
This commit is contained in:
Cyril Soler 2016-05-12 14:40:37 -04:00
commit 2487f3eea2

View File

@ -961,7 +961,9 @@ int FileIndex::loadIndex(const std::string& filename, const RsFileHash& expected
nfile->pop = atoi(tokens[4].c_str());
nfile->updtime = atoi(tokens[5].c_str());
nfile->parent = ndir;
if (ndir) {
nfile->row = ndir->subdirs.size() + ndir->files.size();
}
ndir->files[nfile->name] = nfile;
}