From 39fc7359d4c2187eb6c1a8f7d1c6548bf552bc2b Mon Sep 17 00:00:00 2001 From: implicitfield <114500360+implicitfield@users.noreply.github.com> Date: Fri, 16 Dec 2022 16:43:57 +0200 Subject: FileManager: Clear the selection after deleting files --- Userland/Applications/FileManager/DirectoryView.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Applications') diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index a075eac129..4dd5682f17 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -546,6 +546,7 @@ void DirectoryView::do_delete(bool should_confirm) auto paths = selected_file_paths(); VERIFY(!paths.is_empty()); delete_paths(paths, should_confirm, window()); + current_view().selection().clear(); } bool DirectoryView::can_modify_current_selection() -- cgit v1.2.3