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

Fix code when list is empty

parent 5cba0035
Pipeline #70028 canceled with stage
......@@ -1821,6 +1821,9 @@ void KMMainWidget::trashMessageSelected(MessageList::Core::MessageItemSetReferen
Akonadi::Item::List select = mMessagePane->itemListFromPersistentSet(ref);
select = mPluginCheckBeforeDeletingManagerInterface->confirmBeforeDeleting(select);
if (select.isEmpty()) {
mMessagePane->markMessageItemsAsAboutToBeRemoved(ref, true);
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