Commit aa500afa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash when we delete several identities

parent 9eb81625
Pipeline #168889 passed with stage
in 4 minutes and 48 seconds
......@@ -222,7 +222,7 @@ void IdentityPage::slotRemoveIdentity()
KGuiItem(i18n("&Remove"), QStringLiteral("edit-delete")))
== KMessageBox::Continue) {
for (QTreeWidgetItem *selecteditem : selectedItems) {
auto identityItem = dynamic_cast<IdentityListViewItem *>(item);
auto identityItem = dynamic_cast<IdentityListViewItem *>(selecteditem);
identityName = identityItem->identity().identityName();
if (mIdentityManager->removeIdentity(identityName)) {
delete selecteditem;
......
Supports Markdown
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