mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 00:48:08 +00:00
Set a default account when removing the default account
This commit is contained in:
parent
680d398c36
commit
7da33786d1
1 changed files with 2 additions and 0 deletions
|
|
@ -225,6 +225,8 @@ void CoreModel::onAccountAdded(const std::shared_ptr<linphone::Core> &core,
|
|||
}
|
||||
void CoreModel::onAccountRemoved(const std::shared_ptr<linphone::Core> &core,
|
||||
const std::shared_ptr<linphone::Account> &account) {
|
||||
if (core->getDefaultAccount() == nullptr && core->getAccountList().size() > 0)
|
||||
core->setDefaultAccount(core->getAccountList().front());
|
||||
emit accountRemoved(core, account);
|
||||
}
|
||||
void CoreModel::onAccountRegistrationStateChanged(const std::shared_ptr<linphone::Core> &core,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue