Skip to content
Snippets Groups Projects
Commit 016e6d80 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk
Browse files

newaccountmodel: registered name for SIP account


After updating SIP account profile, account URI disappears from
select account widget because registered name is the same as a
display name.
This patch set registered name empty when update account from
configuration properties because SIP account does not have
registered name.

Change-Id: I8ce9a98e390328e2a9a9404bf8c079547adc9ca3
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent ce75c520
No related branches found
No related tags found
No related merge requests found
......@@ -605,7 +605,7 @@ account::Info::fromDetails(const MapStringString& details)
// General
if (details[ConfProperties::TYPE] != "")
profileInfo.type = details[ConfProperties::TYPE] == QString(ProtocolNames::RING) ? profile::Type::RING : profile::Type::SIP;
registeredName = profileInfo.type == profile::Type::RING ? volatileDetails[VolatileProperties::REGISTERED_NAME].toStdString() : profileInfo.alias;
registeredName = profileInfo.type == profile::Type::RING ? volatileDetails[VolatileProperties::REGISTERED_NAME].toStdString() : "";
profileInfo.alias = toStdString(details[ConfProperties::ALIAS]);
enabled = toBool(details[ConfProperties::ENABLED]);
confProperties.mailbox = toStdString(details[ConfProperties::MAILBOX]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment