diff --git a/libretroshare/src/file_sharing/p3filelists.cc b/libretroshare/src/file_sharing/p3filelists.cc index 6331c6c03..c64b89069 100644 --- a/libretroshare/src/file_sharing/p3filelists.cc +++ b/libretroshare/src/file_sharing/p3filelists.cc @@ -991,12 +991,12 @@ void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIn d.parent = NULL ; d.prow = 0;//fi-1 ; - d.type = DIR_TYPE_DIR; + d.type = DIR_TYPE_PERSON; d.hash.clear() ; d.count = mExtraFilesCache.size(); d.max_mtime = time(NULL); d.mtime = time(NULL); - d.name = "Temporary shared files"; + d.name = "Extra List"; d.path = "/"; d.ref = ref ; @@ -1021,13 +1021,14 @@ void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIn d.count = 0; d.max_mtime = time(NULL); d.mtime = time(NULL); - d.name = f.fname; - d.path = "/"; + d.name = f.path; // so that the UI shows the complete path, since the parent directory is not really a directory. + d.path = f.path; d.ref = ref ; convertEntryIndexToPointer(0,1,d.parent) ; } + d.flags = DIR_FLAGS_ANONYMOUS_DOWNLOAD ; d.id = RsPeerId(); } @@ -1081,7 +1082,7 @@ int p3FileDatabase::RequestDirDetails(void *ref, DirDetails& d, FileSearchFlags convertEntryIndexToPointer(0,1,p); // local shared files from extra list DirStub stub; 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; d.children.push_back(stub); diff --git a/retroshare-gui/src/gui/RemoteDirModel.cpp b/retroshare-gui/src/gui/RemoteDirModel.cpp index a754cf328..2d9820690 100644 --- a/retroshare-gui/src/gui/RemoteDirModel.cpp +++ b/retroshare-gui/src/gui/RemoteDirModel.cpp @@ -457,13 +457,12 @@ QVariant TreeStyle_RDM::displayRole(const DirDetails& details,int coln) const QString res ; if(RemoteMode) - { res = QString::fromUtf8(rsPeers->getPeerName(details.id).c_str()); - } - else - { - res = tr("My files"); - } + else if(details.id == rsPeers->getOwnId()) + res = tr("My files"); + else + res = tr("Temporary shared files"); + return res ; } case COLUMN_FILENB: {