mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added to select and attach multiple files at once
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3877 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
daef5382c1
commit
313d3eac6a
@ -294,13 +294,10 @@ void CreateChannelMsg::addExtraFile()
|
|||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
|
||||||
// select a file
|
// select a file
|
||||||
QString qfile = QFileDialog::getOpenFileName(this, tr("Add Extra File"), "", "", 0,
|
QStringList files = QFileDialog::getOpenFileNames(this, tr("Add Extra File"), "", "", 0, QFileDialog::DontResolveSymlinks);
|
||||||
QFileDialog::DontResolveSymlinks);
|
for (QStringList::iterator fileIt = files.begin(); fileIt != files.end(); fileIt++) {
|
||||||
std::string filePath = qfile.toUtf8().constData();
|
addAttachment((*fileIt).toUtf8().constData());
|
||||||
if (filePath != "")
|
}
|
||||||
{
|
|
||||||
addAttachment(filePath);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user