diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp index db122cefb131be967b821636b71cda4185507884..a51f3b9bb5fe635dfb23be3ea208d5b1bc1fa4e0 100644 --- a/src/newaccountmodel.cpp +++ b/src/newaccountmodel.cpp @@ -310,14 +310,7 @@ NewAccountModelPimpl::slotAccountStatusChanged(const std::string& accountID, con emit linked.accountAdded(accountID); } else if (accountInfo != accounts.end()) { 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); } }