Skip to content
Snippets Groups Projects
Commit 07de7b69 authored by Emmanuel Lepage Vallée's avatar Emmanuel Lepage Vallée
Browse files

account: A connection to &Account::enabled was missing

Refs #74958

Change-Id: Ic0715a8c04a05da276e2be8cb2c71f9ba7891f0f
parent 42f3a69c
No related branches found
No related tags found
No related merge requests found
......@@ -175,10 +175,8 @@ Account* AccountModel::ip2ip() const
{
if (!d_ptr->m_pIP2IP) {
foreach(Account* a, d_ptr->m_lAccounts) {
if (a->id() == DRing::Account::ProtocolNames::IP2IP) {
if (a->id() == DRing::Account::ProtocolNames::IP2IP)
d_ptr->m_pIP2IP = a;
connect(a, &Account::enabled, d_ptr, &AccountModelPrivate::slotSupportedProtocolsChanged);
}
}
}
return d_ptr->m_pIP2IP;
......@@ -260,8 +258,9 @@ void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const
if ((!q_ptr->getById(accountIds[i].toLatin1())) && m_lDeletedAccounts.indexOf(accountIds[i]) == -1) {
Account* acc = AccountPrivate::buildExistingAccountFromId(accountIds[i].toLatin1());
insertAccount(acc,i);
connect(acc,SIGNAL(changed(Account*)),this,SLOT(slotAccountChanged(Account*)));
connect(acc,SIGNAL(presenceEnabledChanged(bool)),this,SLOT(slotAccountPresenceEnabledChanged(bool)));
connect(acc, &Account::changed , this, &AccountModelPrivate::slotAccountChanged );
connect(acc, &Account::presenceEnabledChanged , this, &AccountModelPrivate::slotAccountPresenceEnabledChanged );
connect(acc, &Account::enabled , this, &AccountModelPrivate::slotSupportedProtocolsChanged );
emit q_ptr->dataChanged(q_ptr->index(i,0),q_ptr->index(q_ptr->size()-1));
emit q_ptr->layoutChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment