diff options
| author | Kai Uwe Broulik <[email protected]> | 2026-02-08 19:20:16 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-02-11 13:36:14 +0000 |
| commit | 04de761cdd5784b2c0aca5a44ba611031ae64783 (patch) | |
| tree | 62f974d347d1cbc6cc38547f5696dd686792f111 /src | |
| parent | 69999c70f14ef3fd03669ac034ef059960b008e8 (diff) | |
dolphinview: Use job delegate without auto error handling for trash job
We show the error message in our own message widget already.
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/dolphinview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <KIO/CopyJob> #include <KIO/DeleteOrTrashJob> #include <KIO/DropJob> -#include <KIO/JobUiDelegate> +#include <KIO/JobUiDelegateFactory> #include <KIO/Paste> #include <KIO/PasteJob> #include <KIO/RenameFileDialog> @@ -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(); |
