From cf2a416e779b79ff4bae08a67c028eac2e1a536c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 17 Aug 2018 22:31:34 +0200 Subject: Better defaults for the attachment file dialog multi-selection, start at homedir Perhaps this also works around https://bugreports.qt.io/browse/QTBUG-53707 that seems to break qt on mac. --- views/composer/qml/View.qml | 9 +++++++-- 1 file 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 { Dialogs.FileDialog { id: fileDialog visible: true - title: "Choose a file to attach" + title: qsTr("Choose a file to attach") + folder: shortcuts.home selectFolder: false + selectExisting: true + selectMultiple: true onAccepted: { - composerController.attachments.add({url: fileDialog.fileUrl}) + for (var i = 0; i < fileDialog.fileUrls.length; ++i) { + composerController.attachments.add({url: fileDialog.fileUrls[i]}) + } } } } -- cgit v1.2.3