Skip to content

Commit

Permalink
fix: Dragging files from the trash to a USB drive for undo can cause …
Browse files Browse the repository at this point in the history
…dde-file-manager to freeze

Error in passing parameters during complete deletion

Log: Dragging files from the trash to a USB drive for undo can cause dde-file-manager to freeze
Bug: https://pms.uniontech.com/bug-view-259887.html
  • Loading branch information
liyigang1 authored and deepin-bot[bot] committed Jun 19, 2024
1 parent 640f700 commit 8eb76d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<QUrl> urlsCanTrash = sources;
Expand Down

0 comments on commit 8eb76d1

Please sign in to comment.