mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
Add attachements in MessageComposer now can add more than one file at once.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3872 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
162c54aae4
commit
aeabbbd58a
@ -2130,12 +2130,9 @@ void MessageComposer::addPostSplitter()
|
||||
void MessageComposer::attachFile()
|
||||
{
|
||||
// select a file
|
||||
QString qfile = QFileDialog::getOpenFileName(this, tr("Add Extra File"), "", "", 0,
|
||||
QFileDialog::DontResolveSymlinks);
|
||||
std::string filePath = qfile.toUtf8().constData();
|
||||
if (filePath != "")
|
||||
{
|
||||
MessageComposer::addAttachment(filePath);
|
||||
QStringList files = QFileDialog::getOpenFileNames(this, tr("Add Extra File"), "", "", 0, QFileDialog::DontResolveSymlinks);
|
||||
for (QStringList::iterator fileIt = files.begin(); fileIt != files.end(); fileIt++) {
|
||||
MessageComposer::addAttachment((*fileIt).toUtf8().constData());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user