summaryrefslogtreecommitdiffstats
path: root/views/people/qml/PersonComposer.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-18 08:11:48 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-18 08:11:48 +0200
commit894322a3a1d9c098a76cf2eec97a05f30a74dfe9 (patch)
tree7b62c28918f7827bf91dcb3e32e37720eeb3e291 /views/people/qml/PersonComposer.qml
parent438864fa0057a0fed91431b224429e80f619d06b (diff)
downloadkube-894322a3a1d9c098a76cf2eec97a05f30a74dfe9.tar.gz
kube-894322a3a1d9c098a76cf2eec97a05f30a74dfe9.zip
Hopefully fixed file dialogs on mac.
There seems to be a problem with setting visible=true before the component is completed. The dialog doesn't have to wrapped in a component anyways, and we can just show it using open.
Diffstat (limited to 'views/people/qml/PersonComposer.qml')
-rw-r--r--views/people/qml/PersonComposer.qml21
1 files changed, 10 insertions, 11 deletions
diff --git a/views/people/qml/PersonComposer.qml b/views/people/qml/PersonComposer.qml
index ff24a456..19e8c56b 100644
--- a/views/people/qml/PersonComposer.qml
+++ b/views/people/qml/PersonComposer.qml
@@ -90,19 +90,18 @@ Flickable {
90 color: "#00000000" 90 color: "#00000000"
91 91
92 onClicked: { 92 onClicked: {
93 fileDialogComponent.createObject(parent) 93 fileDialog.open()
94 } 94 }
95 95
96 Component { 96 Dialogs.FileDialog {
97 id: fileDialogComponent 97 id: fileDialog
98 Dialogs.FileDialog { 98 title: qsTr("Choose an Avatar")
99 id: fileDialog 99 folder: shortcuts.home
100 visible: true 100 selectFolder: false
101 title: "Choose an Avatar" 101 selectExisting: true
102 selectFolder: false 102 selectMultiple: false
103 onAccepted: { 103 onAccepted: {
104 //TODO 104 //TODO
105 }
106 } 105 }
107 } 106 }
108 } 107 }