Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
7d5aa7c2
Commit
7d5aa7c2
authored
Jan 08, 2019
by
Andreas Traczyk
Browse files
settings: allow multiple audio file types
Change-Id: I2d73bdee9d8f98d2b4534008091facfa1637ce3d
parent
2771e2ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
advancedsettingswidget.cpp
View file @
7d5aa7c2
...
...
@@ -155,7 +155,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
QString
fileUrl
;
auto
oldPath
=
QString
::
fromStdString
(
LRCInstance
::
getCurrAccConfig
().
Ringtone
.
ringtonePath
);
auto
openPath
=
oldPath
.
isEmpty
()
?
QDir
::
currentPath
()
+
QString
(
"/ringtones/"
)
:
QFileInfo
(
oldPath
).
absolutePath
();
fileUrl
=
QFileDialog
::
getOpenFileName
(
this
,
QString
(
"Select a new ringtone"
),
openPath
,
tr
(
"
Opus
Files (*.
opus
)"
));
fileUrl
=
QFileDialog
::
getOpenFileName
(
this
,
QString
(
"Select a new ringtone"
),
openPath
,
tr
(
"
Audio
Files (*.
wav, *.ogg, *.opus, *.mp3
)"
));
if
(
!
fileUrl
.
isEmpty
())
{
auto
confProps
=
LRCInstance
::
accountModel
().
getAccountConfig
(
LRCInstance
::
getCurrAccId
());
confProps
.
Ringtone
.
ringtonePath
=
fileUrl
.
toStdString
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment