mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Fix crash logging out from an account with no contact address
This commit is contained in:
parent
4defd26bb6
commit
ac8e0f146c
1 changed files with 3 additions and 2 deletions
|
|
@ -124,8 +124,9 @@ void AccountModel::removeAccount() {
|
|||
auto params = mMonitor ? mMonitor->getParams() : nullptr;
|
||||
qDebug() << log()
|
||||
.arg("Removing account [%1]")
|
||||
.arg(params ? Utils::coreStringToAppString(params->getIdentityAddress()->asString()) : "Null");
|
||||
if (mMonitor) core->removeAccount(mMonitor);
|
||||
.arg(params && params->getIdentityAddress()
|
||||
? Utils::coreStringToAppString(params->getIdentityAddress()->asString())
|
||||
: "Null");
|
||||
}
|
||||
|
||||
std::shared_ptr<linphone::Account> AccountModel::getAccount() const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue