mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
FileManager: Use TRY in run_file_operation()
The exception is `execvp()` since that has no Core::System wrapper yet.
This commit is contained in:
parent
6a23dfbc92
commit
dc5a318aa9
4 changed files with 23 additions and 34 deletions
|
@ -650,7 +650,7 @@ void DirectoryView::handle_drop(GUI::ModelIndex const& index, GUI::DropEvent con
|
|||
}
|
||||
|
||||
if (!paths_to_copy.is_empty())
|
||||
run_file_operation(FileOperation::Copy, paths_to_copy, target_node.full_path(), window());
|
||||
MUST(run_file_operation(FileOperation::Copy, paths_to_copy, target_node.full_path(), window()));
|
||||
|
||||
if (had_accepted_drop && on_accepted_drop)
|
||||
on_accepted_drop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue