Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
be41645a
Commit
be41645a
authored
Mar 13, 2019
by
Adrien Béraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configuration: fix saving codec details
Change-Id: I16c3c467ee1b1b583f1dc74e2294b7c069331f73
parent
249bc589
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
src/client/configurationmanager.cpp
src/client/configurationmanager.cpp
+1
-1
src/manager.cpp
src/manager.cpp
+9
-0
src/manager.h
src/manager.h
+1
-0
No files found.
src/client/configurationmanager.cpp
View file @
be41645a
...
...
@@ -549,7 +549,7 @@ setActiveCodecList(const std::string& accountID
if
(
auto
acc
=
ring
::
Manager
::
instance
().
getAccount
(
accountID
))
{
acc
->
setActiveCodecs
(
list
);
ring
::
Manager
::
instance
().
saveConfig
();
ring
::
Manager
::
instance
().
saveConfig
(
acc
);
}
else
{
RING_ERR
(
"Could not find account %s"
,
accountID
.
c_str
());
}
...
...
src/manager.cpp
View file @
be41645a
...
...
@@ -1685,6 +1685,15 @@ void Manager::pollEvents()
//THREAD=Main
void
Manager
::
saveConfig
(
const
std
::
shared_ptr
<
Account
>&
acc
)
{
if
(
auto
ringAcc
=
std
::
dynamic_pointer_cast
<
RingAccount
>
(
acc
))
saveConfig
(
ringAcc
);
else
saveConfig
();
}
void
Manager
::
saveConfig
(
const
std
::
shared_ptr
<
RingAccount
>&
account
)
{
...
...
src/manager.h
View file @
be41645a
...
...
@@ -306,6 +306,7 @@ class Manager {
*/
void
saveConfig
();
void
saveConfig
(
const
std
::
shared_ptr
<
RingAccount
>&
);
void
saveConfig
(
const
std
::
shared_ptr
<
Account
>&
acc
);
/**
* Play a ringtone
...
...
Write
Preview
Markdown
is supported
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