diff options
-rw-r--r-- | views/composer/qml/View.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml index 66553edb..64de3569 100644 --- a/views/composer/qml/View.qml +++ b/views/composer/qml/View.qml | |||
@@ -356,10 +356,15 @@ Kube.View { | |||
356 | Dialogs.FileDialog { | 356 | Dialogs.FileDialog { |
357 | id: fileDialog | 357 | id: fileDialog |
358 | visible: true | 358 | visible: true |
359 | title: "Choose a file to attach" | 359 | title: qsTr("Choose a file to attach") |
360 | folder: shortcuts.home | ||
360 | selectFolder: false | 361 | selectFolder: false |
362 | selectExisting: true | ||
363 | selectMultiple: true | ||
361 | onAccepted: { | 364 | onAccepted: { |
362 | composerController.attachments.add({url: fileDialog.fileUrl}) | 365 | for (var i = 0; i < fileDialog.fileUrls.length; ++i) { |
366 | composerController.attachments.add({url: fileDialog.fileUrls[i]}) | ||
367 | } | ||
363 | } | 368 | } |
364 | } | 369 | } |
365 | } | 370 | } |