Commit 1d333790 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix logic + load rules

parent e8d45a6e
Pipeline #69042 canceled with stage
in 30 minutes and 55 seconds
......@@ -23,7 +23,7 @@ Akonadi::Item::List ConfirmBeforeDeletingInterface::exec(const Akonadi::Item::Li
for (const auto &item : list) {
if (ConfirmBeforeDeletingManager::self()->deletingNeedToConfirm(item)) {
// Use subject ?
if (KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to delete this email?"), i18n("Confirm Delete Mail")) == KMessageBox::No) {
if (KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to delete this email?"), i18n("Confirm Delete Mail")) == KMessageBox::Yes) {
lst << item;
}
} else {
......
......@@ -13,6 +13,7 @@
ConfirmBeforeDeletingManager::ConfirmBeforeDeletingManager(QObject *parent)
: QObject(parent)
{
loadRules();
}
ConfirmBeforeDeletingManager::~ConfirmBeforeDeletingManager()
......
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