make extra shared file list appear only when non empty

This commit is contained in:
csoler 2018-09-27 21:56:41 +02:00
parent e1698429de
commit 54ec49dc03
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 4 additions and 0 deletions

View File

@ -1078,6 +1078,8 @@ int p3FileDatabase::RequestDirDetails(void *ref, DirDetails& d, FileSearchFlags
stub.ref = p; stub.ref = p;
d.children.push_back(stub); d.children.push_back(stub);
} }
if(mExtraFiles->size() > 0)
{ {
convertEntryIndexToPointer<sizeof(void*)>(0,1,p); // local shared files from extra list convertEntryIndexToPointer<sizeof(void*)>(0,1,p); // local shared files from extra list
DirStub stub; DirStub stub;

View File

@ -122,6 +122,8 @@ public:
std::string destpath); std::string destpath);
uint32_t size() const { return mFiles.size() ; }
/*** /***
* Hash file, and add to the files, * Hash file, and add to the files,
* file is removed after period. * file is removed after period.