summaryrefslogtreecommitdiffstats
path: root/views/composer/qml/View.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-17 22:31:34 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-17 22:31:34 +0200
commitcf2a416e779b79ff4bae08a67c028eac2e1a536c (patch)
tree39a22da3113d7ea110d5b3e15dc309fa88ce55ff /views/composer/qml/View.qml
parentac1e8545a8e1ea4a2bbf5a7821505de92a958933 (diff)
downloadkube-cf2a416e779b79ff4bae08a67c028eac2e1a536c.tar.gz
kube-cf2a416e779b79ff4bae08a67c028eac2e1a536c.zip
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.
Diffstat (limited to 'views/composer/qml/View.qml')
-rw-r--r--views/composer/qml/View.qml9
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 }