From 9354ee2ce61ff5f9e936db73e92d18c2ac64b6c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Tue, 24 Dec 2019 11:52:55 -0500
Subject: [PATCH] accountModel: do not throw in Qt slot

Change-Id: I373a34fca57ba4876f0c6f27a07d9bff0b3c0234
---
 src/newaccountmodel.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp
index 9caa270e..6aeee96a 100644
--- a/src/newaccountmodel.cpp
+++ b/src/newaccountmodel.cpp
@@ -475,7 +475,8 @@ NewAccountModelPimpl::slotVolatileAccountDetailsChanged(const std::string& accou
 {
     auto account = accounts.find(accountId);
     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;
 
-- 
GitLab