From 04de761cdd5784b2c0aca5a44ba611031ae64783 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sun, 8 Feb 2026 19:20:16 +0100 Subject: dolphinview: Use job delegate without auto error handling for trash job We show the error message in our own message widget already. --- src/views/dolphinview.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index e33158882..7e01b9a93 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include #include @@ -819,6 +819,8 @@ void DolphinView::trashSelectedItems() using Iface = KIO::AskUserActionInterface; auto *trashJob = new KIO::DeleteOrTrashJob(list, Iface::Trash, Iface::DefaultConfirmation, this); + // Auto*Warning*Handling, errors are put in a KMessageWidget by us in slotTrashFileFinished. + trashJob->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoWarningHandlingEnabled, this)); connect(trashJob, &KJob::result, this, &DolphinView::slotTrashFileFinished); m_selectNextItem = true; trashJob->start(); @@ -830,6 +832,8 @@ void DolphinView::deleteSelectedItems() using Iface = KIO::AskUserActionInterface; auto *trashJob = new KIO::DeleteOrTrashJob(list, Iface::Delete, Iface::DefaultConfirmation, this); + // Auto*Warning*Handling, errors are put in a KMessageWidget by us in slotDeleteFileFinished. + trashJob->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoWarningHandlingEnabled, this)); connect(trashJob, &KJob::result, this, &DolphinView::slotDeleteFileFinished); m_selectNextItem = true; trashJob->start(); -- cgit v1.3