mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed display of temporary shared file text
This commit is contained in:
parent
c77a28c17a
commit
2610f62e41
@ -991,12 +991,12 @@ void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIn
|
|||||||
d.parent = NULL ;
|
d.parent = NULL ;
|
||||||
|
|
||||||
d.prow = 0;//fi-1 ;
|
d.prow = 0;//fi-1 ;
|
||||||
d.type = DIR_TYPE_DIR;
|
d.type = DIR_TYPE_PERSON;
|
||||||
d.hash.clear() ;
|
d.hash.clear() ;
|
||||||
d.count = mExtraFilesCache.size();
|
d.count = mExtraFilesCache.size();
|
||||||
d.max_mtime = time(NULL);
|
d.max_mtime = time(NULL);
|
||||||
d.mtime = time(NULL);
|
d.mtime = time(NULL);
|
||||||
d.name = "Temporary shared files";
|
d.name = "Extra List";
|
||||||
d.path = "/";
|
d.path = "/";
|
||||||
d.ref = ref ;
|
d.ref = ref ;
|
||||||
|
|
||||||
@ -1021,13 +1021,14 @@ void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIn
|
|||||||
d.count = 0;
|
d.count = 0;
|
||||||
d.max_mtime = time(NULL);
|
d.max_mtime = time(NULL);
|
||||||
d.mtime = time(NULL);
|
d.mtime = time(NULL);
|
||||||
d.name = f.fname;
|
d.name = f.path; // so that the UI shows the complete path, since the parent directory is not really a directory.
|
||||||
d.path = "/";
|
d.path = f.path;
|
||||||
d.ref = ref ;
|
d.ref = ref ;
|
||||||
|
|
||||||
convertEntryIndexToPointer<sizeof(void*)>(0,1,d.parent) ;
|
convertEntryIndexToPointer<sizeof(void*)>(0,1,d.parent) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
d.flags = DIR_FLAGS_ANONYMOUS_DOWNLOAD ;
|
||||||
d.id = RsPeerId();
|
d.id = RsPeerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1081,7 +1082,7 @@ int p3FileDatabase::RequestDirDetails(void *ref, DirDetails& d, FileSearchFlags
|
|||||||
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;
|
||||||
stub.type = DIR_TYPE_PERSON; // not totally exact, but used as a trick.
|
stub.type = DIR_TYPE_PERSON; // not totally exact, but used as a trick.
|
||||||
stub.name = "Temporary shared files";
|
stub.name = "Extra List";
|
||||||
stub.ref = p;
|
stub.ref = p;
|
||||||
|
|
||||||
d.children.push_back(stub);
|
d.children.push_back(stub);
|
||||||
|
@ -457,13 +457,12 @@ QVariant TreeStyle_RDM::displayRole(const DirDetails& details,int coln) const
|
|||||||
QString res ;
|
QString res ;
|
||||||
|
|
||||||
if(RemoteMode)
|
if(RemoteMode)
|
||||||
{
|
|
||||||
res = QString::fromUtf8(rsPeers->getPeerName(details.id).c_str());
|
res = QString::fromUtf8(rsPeers->getPeerName(details.id).c_str());
|
||||||
}
|
else if(details.id == rsPeers->getOwnId())
|
||||||
else
|
res = tr("My files");
|
||||||
{
|
else
|
||||||
res = tr("My files");
|
res = tr("Temporary shared files");
|
||||||
}
|
|
||||||
return res ;
|
return res ;
|
||||||
}
|
}
|
||||||
case COLUMN_FILENB: {
|
case COLUMN_FILENB: {
|
||||||
|
Loading…
Reference in New Issue
Block a user