mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 06:08:07 +00:00
fix(src/components/contact/VcardModel): update sip address -> add then remove to avoid a only existing... error
This commit is contained in:
parent
e88d1d0980
commit
cefd6476c0
1 changed files with 3 additions and 2 deletions
|
|
@ -336,8 +336,9 @@ void VcardModel::removeSipAddress (const QString &sipAddress) {
|
|||
}
|
||||
|
||||
bool VcardModel::updateSipAddress (const QString &oldSipAddress, const QString &sipAddress) {
|
||||
removeSipAddress(oldSipAddress);
|
||||
return addSipAddress(sipAddress);
|
||||
bool soFarSoGood = addSipAddress(sipAddress);
|
||||
removeSipAddress(oldSipAddress); // Remove after. Avoid `Unable to remove the only sip address...` error.
|
||||
return soFarSoGood;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue