Skip to content
Snippets Groups Projects
Commit 136f365f authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Adrien Béraud
Browse files

fix: avoid crash when deleting account

GitLab: #1173
Change-Id: Id30f259ce286ea8fb76af5aee59ed49edb99011a
parent 2145ee62
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,8 @@ CurrentAccountToMigrate::slotAccountStatusChanged(const QString& accountId)
void
CurrentAccountToMigrate::slotAccountRemoved(const QString& accountId)
{
if (accountToMigrateList_.isEmpty() || accountToMigrateList_.indexOf(accountId) < 0)
return;
if (accountToMigrateList_.removeOne(accountId))
updateData();
if (accountToMigrateList_.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment