mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-19 02:23:48 -05:00
fixed compilation
This commit is contained in:
parent
5071656209
commit
5bc071b03c
6 changed files with 28 additions and 42 deletions
|
|
@ -733,8 +733,25 @@ void SharedFilesDialog::sendLinkTo()
|
|||
|
||||
void SharedFilesDialog::collCreate()
|
||||
{
|
||||
#ifdef TODO
|
||||
QModelIndexList lst = getSelected();
|
||||
model->createCollectionFile(this, lst);
|
||||
|
||||
std::vector <DirDetails> dirVec;
|
||||
model->getDirDetailsFromSelect(lst, dirVec);
|
||||
|
||||
FileSearchFlags f = RemoteMode?RS_FILE_HINTS_REMOTE:RS_FILE_HINTS_LOCAL ;
|
||||
|
||||
QString dir_name;
|
||||
if(!RemoteMode)
|
||||
{
|
||||
if(!dirVec.empty())
|
||||
{
|
||||
const DirDetails& details = dirVec[0];
|
||||
dir_name = QDir(QString::fromUtf8(details.name.c_str())).dirName();
|
||||
}
|
||||
}
|
||||
RsCollection(dirVec,f).openNewColl(parent,dir_name);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SharedFilesDialog::collModif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue