Commit 6bf4ccce authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix check deleting message

parent a2785e2d
Pipeline #70676 skipped
......@@ -1619,6 +1619,11 @@ void KMMainWidget::slotUseTemplate()
void KMMainWidget::moveMessageSelected(MessageList::Core::MessageItemSetReference ref, const Akonadi::Collection &dest, bool confirmOnDeletion)
{
Akonadi::Item::List selectMsg = mMessagePane->itemListFromPersistentSet(ref);
selectMsg = mPluginCheckBeforeDeletingManagerInterface->confirmBeforeDeleting(selectMsg);
if (selectMsg.isEmpty()) {
mMessagePane->deletePersistentSet(ref);
return;
}
// If this is a deletion, ask for confirmation
if (confirmOnDeletion) {
const int selectedMessageCount = selectMsg.count();
......
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