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) ...@@ -602,9 +602,7 @@ Account* AccountModel::add(const QString& alias, const Account::Protocol proto)
Account* AccountModel::add(const QString& alias, const QModelIndex& idx) Account* AccountModel::add(const QString& alias, const QModelIndex& idx)
{ {
Account* a = add(alias); return add(alias, qvariant_cast<Account::Protocol>(idx.data((int)ProtocolModel::Role::Protocol)));
a->setProtocol(qvariant_cast<Account::Protocol>(idx.data((int)ProtocolModel::Role::Protocol)));
return a;
} }
///Remove an account ///Remove an account
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment