mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
Fix in case nDir was reset before
This commit is contained in:
parent
1d476de806
commit
ed567071a8
1 changed files with 3 additions and 1 deletions
|
@ -961,7 +961,9 @@ int FileIndex::loadIndex(const std::string& filename, const RsFileHash& expected
|
||||||
nfile->pop = atoi(tokens[4].c_str());
|
nfile->pop = atoi(tokens[4].c_str());
|
||||||
nfile->updtime = atoi(tokens[5].c_str());
|
nfile->updtime = atoi(tokens[5].c_str());
|
||||||
nfile->parent = ndir;
|
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;
|
ndir->files[nfile->name] = nfile;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue