1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 16:15:08 +00:00

FileManager: Call on_selection_change with the correct view

This commit is contained in:
Zac 2020-12-01 15:32:35 +10:00 committed by Andreas Kling
parent 3f808b0dda
commit 99e301510e

View file

@ -483,7 +483,7 @@ void DirectoryView::handle_selection_change()
m_force_delete_action->set_enabled(can_delete);
if (on_selection_change)
on_selection_change(*m_table_view);
on_selection_change(current_view());
}
void DirectoryView::setup_actions()