Skip to content
Snippets Groups Projects
Commit daa2af7f authored by Alexandre Lision's avatar Alexandre Lision
Browse files

fix compilation with clang

replace faulty lambda with a private slot

Refs #70609
parent 7a98f3da
No related branches found
No related tags found
No related merge requests found
...@@ -154,9 +154,7 @@ Account* AccountModel::ip2ip() const ...@@ -154,9 +154,7 @@ Account* AccountModel::ip2ip() const
foreach(Account* a, d_ptr->m_lAccounts) { 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; d_ptr->m_pIP2IP = a;
connect(a,&Account::enabled,[this]() { connect(a,SIGNAL(enabled()),this,SLOT(slotSupportedProtocolsChanged()));
emit supportedProtocolsChanged();
});
} }
} }
} }
...@@ -287,6 +285,11 @@ void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const ...@@ -287,6 +285,11 @@ void AccountModelPrivate::slotDaemonAccountChanged(const QString& account, const
} }
void AccountModelPrivate::slotSupportedProtocolsChanged()
{
emit q_ptr->supportedProtocolsChanged();
}
///Tell the model something changed ///Tell the model something changed
void AccountModelPrivate::slotAccountChanged(Account* a) void AccountModelPrivate::slotAccountChanged(Account* a)
{ {
......
...@@ -65,6 +65,7 @@ public: ...@@ -65,6 +65,7 @@ public:
public Q_SLOTS: public Q_SLOTS:
void slotDaemonAccountChanged(const QString& account, const QString& registration_state, unsigned code, const QString& status); void slotDaemonAccountChanged(const QString& account, const QString& registration_state, unsigned code, const QString& status);
void slotAccountChanged(Account* a); void slotAccountChanged(Account* a);
void slotSupportedProtocolsChanged();
void slotVoiceMailNotify( const QString& accountID , int count ); void slotVoiceMailNotify( const QString& accountID , int count );
void slotAccountPresenceEnabledChanged(bool state); void slotAccountPresenceEnabledChanged(bool state);
void slotVolatileAccountDetailsChange(const QString& accountId, const MapStringString& details); void slotVolatileAccountDetailsChange(const QString& accountId, const MapStringString& details);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment