accountModel: do not throw in Qt slot

Change-Id: I373a34fca57ba4876f0c6f27a07d9bff0b3c0234
parent 475d0885
...@@ -475,7 +475,8 @@ NewAccountModelPimpl::slotVolatileAccountDetailsChanged(const std::string& accou ...@@ -475,7 +475,8 @@ NewAccountModelPimpl::slotVolatileAccountDetailsChanged(const std::string& accou
{ {
auto account = accounts.find(accountId); auto account = accounts.find(accountId);
if (account == accounts.end()) { if (account == accounts.end()) {
throw std::out_of_range("NewAccountModelPimpl::slotVolatileAccountDetailsChanged, can't find " + accountId); qWarning() << "NewAccountModelPimpl::slotVolatileAccountDetailsChanged, can't find " << accountId.c_str();
return;
} }
auto& accountInfo = account->second.first; auto& accountInfo = account->second.first;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment