summaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/maildir/qml/AccountSettings.qml24
1 files changed, 10 insertions, 14 deletions
diff --git a/accounts/maildir/qml/AccountSettings.qml b/accounts/maildir/qml/AccountSettings.qml
index 9553135b..44713b00 100644
--- a/accounts/maildir/qml/AccountSettings.qml
+++ b/accounts/maildir/qml/AccountSettings.qml
@@ -82,22 +82,18 @@ Item {
82 iconName: Kube.Icons.folder 82 iconName: Kube.Icons.folder
83 83
84 onClicked: { 84 onClicked: {
85 fileDialogComponent.createObject(parent) 85 fileDialog.open()
86 } 86 }
87 87
88 Component { 88 Dialogs.FileDialog {
89 id: fileDialogComponent 89 id: fileDialog
90 Dialogs.FileDialog { 90 title: qsTr("Choose a maildir folder")
91 id: fileDialog 91 folder: shortcuts.home
92 92 selectFolder: true
93 visible: true 93 selectExisting: true
94 title: "Choose the maildir folder" 94 selectMultiple: false
95 95 onAccepted: {
96 selectFolder: true 96 maildirSettings.path = fileDialog.fileUrl
97
98 onAccepted: {
99 maildirSettings.path = fileDialog.fileUrl
100 }
101 } 97 }
102 } 98 }
103 } 99 }