Merge pull request #382 from PhenomRetroShare/Fix_CorrectPR378

Move nDir->Files into condition nDir exists.
This commit is contained in:
Cyril Soler 2016-05-13 11:13:07 -04:00
commit 52f488c84f

View File

@ -963,8 +963,8 @@ int FileIndex::loadIndex(const std::string& filename, const RsFileHash& expected
nfile->parent = ndir; nfile->parent = ndir;
if (ndir) { if (ndir) {
nfile->row = ndir->subdirs.size() + ndir->files.size(); nfile->row = ndir->subdirs.size() + ndir->files.size();
ndir->files[nfile->name] = nfile;
} }
ndir->files[nfile->name] = nfile;
} }
/* create new dir and add to stack */ /* create new dir and add to stack */