Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
7d5aa7c2
Commit
7d5aa7c2
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
settings: allow multiple audio file types
Change-Id: I2d73bdee9d8f98d2b4534008091facfa1637ce3d
parent
2771e2ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
advancedsettingswidget.cpp
+1
-1
1 addition, 1 deletion
advancedsettingswidget.cpp
with
1 addition
and
1 deletion
advancedsettingswidget.cpp
+
1
−
1
View file @
7d5aa7c2
...
@@ -155,7 +155,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
...
@@ -155,7 +155,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
QString
fileUrl
;
QString
fileUrl
;
auto
oldPath
=
QString
::
fromStdString
(
LRCInstance
::
getCurrAccConfig
().
Ringtone
.
ringtonePath
);
auto
oldPath
=
QString
::
fromStdString
(
LRCInstance
::
getCurrAccConfig
().
Ringtone
.
ringtonePath
);
auto
openPath
=
oldPath
.
isEmpty
()
?
QDir
::
currentPath
()
+
QString
(
"/ringtones/"
)
:
QFileInfo
(
oldPath
).
absolutePath
();
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
())
{
if
(
!
fileUrl
.
isEmpty
())
{
auto
confProps
=
LRCInstance
::
accountModel
().
getAccountConfig
(
LRCInstance
::
getCurrAccId
());
auto
confProps
=
LRCInstance
::
accountModel
().
getAccountConfig
(
LRCInstance
::
getCurrAccId
());
confProps
.
Ringtone
.
ringtonePath
=
fileUrl
.
toStdString
();
confProps
.
Ringtone
.
ringtonePath
=
fileUrl
.
toStdString
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment