From 9a621b750971e864b607afc12574b7598c39b836 Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Wed, 12 Jul 2017 16:20:59 +0200 Subject: [PATCH] Set filechooser to return a single url --- retroshare-qml-app/src/components/CustomFileChooser.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/retroshare-qml-app/src/components/CustomFileChooser.qml b/retroshare-qml-app/src/components/CustomFileChooser.qml index fd73d3c5c..a9dae21de 100644 --- a/retroshare-qml-app/src/components/CustomFileChooser.qml +++ b/retroshare-qml-app/src/components/CustomFileChooser.qml @@ -14,9 +14,10 @@ Item folder: shortcuts.pictures nameFilters: [ "Image files (*.png *.jpg)"] visible: false + selectMultiple: false onAccepted: { - console.log("You chose: " + fileDialog.fileUrls) - resultFile = fileDialog.fileUrls + console.log("You chose: " + fileDialog.fileUrl) + resultFile = fileDialog.fileUrl } onRejected: { console.log("Canceled") @@ -40,7 +41,7 @@ Item function androidResult (uri) { - console.log("@@@@@@@@@ Android image uri found" , uri) + console.log("Android image uri found" , uri) resultFile = uri mainWindow.delUriHandler("media", androidResult) }