diff --git a/src/plugins/common/core/dfmplugin-fileoperations/fileoperationsevent/trashfileeventreceiver.cpp b/src/plugins/common/core/dfmplugin-fileoperations/fileoperationsevent/trashfileeventreceiver.cpp index c6234aebde..d717d091e6 100644 --- a/src/plugins/common/core/dfmplugin-fileoperations/fileoperationsevent/trashfileeventreceiver.cpp +++ b/src/plugins/common/core/dfmplugin-fileoperations/fileoperationsevent/trashfileeventreceiver.cpp @@ -91,7 +91,9 @@ JobHandlePointer TrashFileEventReceiver::doMoveToTrash(const quint64 windowId, c (!dfmio::DFMUtils::supportTrash(sourceFirst) && !canTrash)) { if (DialogManagerInstance->showDeleteFilesDialog(sources, true) != QDialog::Accepted) return nullptr; - handle = copyMoveJob->deletes(sources, flags); + handle = copyMoveJob->deletes(sources, flags, isInit); + if (!isInit) + return handle; } else { // check url permission QList urlsCanTrash = sources;