Skip to content
Snippets Groups Projects
Commit cfbac775 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

newaccountmodel: separate enabled from the configuration and if active


Change-Id: I9b9d17936d64bf679f66e06afa1de838f7289ebe
Reviewed-by: default avatarHugo Lefeuvre <hugo.lefeuvre@savoirfairelinux.com>
parent 96c45785
No related branches found
No related tags found
No related merge requests found
...@@ -310,13 +310,6 @@ NewAccountModelPimpl::slotAccountStatusChanged(const std::string& accountID, con ...@@ -310,13 +310,6 @@ NewAccountModelPimpl::slotAccountStatusChanged(const std::string& accountID, con
emit linked.accountAdded(accountID); emit linked.accountAdded(accountID);
} else if (accountInfo != accounts.end()) { } else if (accountInfo != accounts.end()) {
accountInfo->second.status = status; accountInfo->second.status = status;
if (status == api::account::Status::REGISTERED and not accounts[accountID].enabled) {
accounts[accountID].enabled = true;
emit linked.accountStatusChanged(accountID);
} else if (status == api::account::Status::UNREGISTERED and accounts[accountID].enabled) {
accounts[accountID].enabled = false;
emit linked.accountStatusChanged(accountID);
} else
emit linked.accountStatusChanged(accountID); emit linked.accountStatusChanged(accountID);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment