Skip to content
Snippets Groups Projects
Commit c7ac6738 authored by Alexandre Lision's avatar Alexandre Lision Committed by Emmanuel Lepage Vallee
Browse files

account: fix issue with acocunt protocol

signals were triggered before actually setting the protocol

Refs #67077
parent fb875353
No related branches found
No related tags found
No related merge requests found
......@@ -602,9 +602,7 @@ Account* AccountModel::add(const QString& alias, const Account::Protocol proto)
Account* AccountModel::add(const QString& alias, const QModelIndex& idx)
{
Account* a = add(alias);
a->setProtocol(qvariant_cast<Account::Protocol>(idx.data((int)ProtocolModel::Role::Protocol)));
return a;
return add(alias, qvariant_cast<Account::Protocol>(idx.data((int)ProtocolModel::Role::Protocol)));
}
///Remove an account
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment