mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 17:45:15 -04:00
Added new button "Open Collection" in TransfersDialog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4691 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
031629d528
commit
bab7ebaa5b
10 changed files with 993 additions and 905 deletions
|
@ -916,19 +916,10 @@ void RetroshareDirModel::createCollectionFile(const QModelIndexList &list)
|
|||
return ;
|
||||
}
|
||||
|
||||
QString filename ;
|
||||
|
||||
if(!misc::getSaveFileName(NULL,RshareSettings::LASTDIR_EXTRAFILE,tr("Create selection file"),tr("Collection files")+" (*."+RsCollectionFile::ExtensionString+")",filename))
|
||||
return ;
|
||||
|
||||
if(!filename.endsWith("."+RsCollectionFile::ExtensionString))
|
||||
filename += "."+RsCollectionFile::ExtensionString ;
|
||||
|
||||
std::cerr << "Got file name: "<< filename.toStdString() << std::endl;
|
||||
std::vector <DirDetails> dirVec;
|
||||
getDirDetailsFromSelect(list, dirVec);
|
||||
|
||||
RsCollectionFile(dirVec).save(filename) ;
|
||||
RsCollectionFile(dirVec).save();
|
||||
}
|
||||
|
||||
void RetroshareDirModel::downloadSelected(const QModelIndexList &list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue