|
|
@ -417,13 +417,14 @@ void |
|
|
|
InputBar::openFileSelection() |
|
|
|
InputBar::openFileSelection() |
|
|
|
{ |
|
|
|
{ |
|
|
|
const QString homeFolder = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); |
|
|
|
const QString homeFolder = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); |
|
|
|
const auto fileName = |
|
|
|
const QStringList fileNames = |
|
|
|
QFileDialog::getOpenFileName(nullptr, tr("Select a file"), homeFolder, tr("All Files (*)")); |
|
|
|
QFileDialog::getOpenFileNames(nullptr, tr("Select file(s)"), homeFolder, tr("All Files (*)")); |
|
|
|
|
|
|
|
|
|
|
|
if (fileName.isEmpty()) |
|
|
|
if (fileNames.isEmpty()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
startUploadFromPath(fileName); |
|
|
|
for (const auto &fileName : fileNames) |
|
|
|
|
|
|
|
startUploadFromPath(fileName); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString |
|
|
|
QString |
|
|
|