mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibGUI: Make ModelSelection non-copyable and non-movable
These are meant to be attached to an AbstractView at all times.
This commit is contained in:
parent
9bdd8ec3f3
commit
b97e42dcaa
2 changed files with 5 additions and 1 deletions
|
@ -775,7 +775,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
|
|||
|
||||
directory_view.on_selection_change = [&](GUI::AbstractView& view) {
|
||||
// FIXME: Figure out how we can enable/disable the paste action, based on clipboard contents.
|
||||
auto selection = view.selection();
|
||||
auto& selection = view.selection();
|
||||
|
||||
delete_action->set_enabled(!selection.is_empty() && access(directory_view.path().characters(), W_OK) == 0);
|
||||
copy_action->set_enabled(!selection.is_empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue