Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-libclient
Commits
e22a7ba9
Commit
e22a7ba9
authored
Sep 23, 2019
by
Sébastien Blin
Browse files
migrationEnded: force reload of all account details
Change-Id: Ia2b663b6ec3addb173fe44f6ced0fdf0554fcd5a
parent
99aece5b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/newaccountmodel.cpp
View file @
e22a7ba9
...
...
@@ -536,6 +536,8 @@ void
NewAccountModelPimpl
::
slotMigrationEnded
(
const
std
::
string
&
accountId
,
bool
ok
)
{
if
(
ok
)
{
// Previous account was incorrect, force a full reload
removeFromAccounts
(
accountId
);
addToAccounts
(
accountId
);
}
emit
linked
.
migrationEnded
(
accountId
,
ok
);
...
...
@@ -564,7 +566,7 @@ NewAccountModelPimpl::addToAccounts(const std::string& accountId,
auto
it
=
accounts
.
emplace
(
accountId
,
std
::
make_pair
(
account
::
Info
(),
db
));
if
(
!
it
.
second
)
{
q
Debu
g
(
"failed to add new account: id already present in map"
);
q
Warnin
g
(
"failed to add new account: id already present in map"
);
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment