mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
small fixes in files context menus
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2162 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
153413c94d
commit
e0113efb30
4 changed files with 76 additions and 56 deletions
|
@ -1239,7 +1239,6 @@ bool FileIndex::extractData(void *ref,DirDetails& details)
|
|||
std::cerr << "FileIndexStore::RequestDirDetails() name: " << file->name << std::endl;
|
||||
#endif
|
||||
details.ref = file;
|
||||
details.name = file->name;
|
||||
details.hash = file->hash;
|
||||
details.age = time(NULL) - file->modtime;
|
||||
details.flags = 0;//file->pop;
|
||||
|
@ -1248,7 +1247,17 @@ bool FileIndex::extractData(void *ref,DirDetails& details)
|
|||
details.parent = file->parent ;
|
||||
|
||||
details.prow = (file->parent==NULL)?0:file->parent->row ;
|
||||
details.path = (file->parent==NULL)?"":file->parent->path;
|
||||
|
||||
if(details.type == DIR_TYPE_DIR)
|
||||
{
|
||||
details.name = file->name;
|
||||
details.path = dir->path;
|
||||
}
|
||||
else
|
||||
{
|
||||
details.name = file->name;
|
||||
details.path = (file->parent==NULL)?"":file->parent->path;
|
||||
}
|
||||
|
||||
/* find peer id */
|
||||
FileEntry *f ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue