mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 06:14:25 -04:00
Added new Patch from Phenom (AddRSCollectionEditor_v0.6_7386)
Some Improvements : added submenu, Edit and view mode. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7388 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5e1099f47f
commit
e65f73a44d
23 changed files with 2693 additions and 811 deletions
|
@ -915,16 +915,16 @@ const DirDetailsVector *RetroshareDirModel::requestDirDetails(void *ref, bool re
|
|||
|
||||
void RetroshareDirModel::createCollectionFile(QWidget *parent, const QModelIndexList &list)
|
||||
{
|
||||
if(RemoteMode)
|
||||
/* if(RemoteMode)
|
||||
{
|
||||
std::cerr << "Cannot create a collection file from remote" << std::endl;
|
||||
return ;
|
||||
}
|
||||
}*/
|
||||
|
||||
std::vector <DirDetails> dirVec;
|
||||
getDirDetailsFromSelect(list, dirVec);
|
||||
|
||||
RsCollectionFile(dirVec).save(parent);
|
||||
RsCollectionFile(dirVec).openNewColl(parent);
|
||||
}
|
||||
|
||||
void RetroshareDirModel::downloadSelected(const QModelIndexList &list)
|
||||
|
@ -980,7 +980,7 @@ void RetroshareDirModel::downloadDirectory(const DirDetails & dirDetails, int pr
|
|||
{
|
||||
if (dirDetails.type & DIR_TYPE_FILE)
|
||||
{
|
||||
std::list<RsPeerId> srcIds;
|
||||
std::list<RsPeerId> srcIds ;
|
||||
QString cleanPath = QDir::cleanPath(QString::fromUtf8(rsFiles->getDownloadDirectory().c_str()) + "/" + QString::fromUtf8(dirDetails.path.substr(prefixLen).c_str()));
|
||||
|
||||
srcIds.push_back(dirDetails.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue