Skip to content
Snippets Groups Projects
Commit 7657de11 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

ringtones: use correct default ringtone folder for FileDialog

Change-Id: I95c4713ffdb8e772dcea3edc5cdeb0eaa1080c75
parent 05a602c8
No related branches found
No related tags found
No related merge requests found
......@@ -77,12 +77,10 @@ ColumnLayout {
JamiFileDialog {
id: ringtonePath_Dialog
property string oldPath : SettingsAdapter.getAccountConfig_Ringtone_RingtonePath()
property string openPath : oldPath === "" ? (UtilsAdapter.getCurrentPath() + "/ringtones/") : (UtilsAdapter.toFileAbsolutepath(oldPath))
mode: JamiFileDialog.OpenFile
title: JamiStrings.selectNewRingtone
folder: openPath
folder: JamiQmlUtils.qmlFilePrefix + UtilsAdapter.toFileAbsolutepath(
SettingsAdapter.getAccountConfig_Ringtone_RingtonePath())
nameFilters: [qsTr("Audio Files") + " (*.wav *.ogg *.opus *.mp3 *.aiff *.wma)", qsTr(
"All files") + " (*)"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment