mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #378 from PhenomRetroShare/Fix_CasenDirResetedBefore
Fix in case nDir was reset before
This commit is contained in:
commit
2487f3eea2
@ -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;
|
||||
nfile->row = ndir->subdirs.size() + ndir->files.size();
|
||||
if (ndir) {
|
||||
nfile->row = ndir->subdirs.size() + ndir->files.size();
|
||||
}
|
||||
ndir->files[nfile->name] = nfile;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user