diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-30 16:12:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-30 23:34:40 +0100 |
commit | d3bd9f1f0c47dae2138fd3e441084727e5fd9046 (patch) | |
tree | 4e9da17cea19e96b8f8b7d8494c690fc9347d159 /Userland | |
parent | 354c4690d23ffa827be4b3ee841a626efd2583b8 (diff) | |
download | serenity-d3bd9f1f0c47dae2138fd3e441084727e5fd9046.zip |
HackStudio: Scope the "delete file from project" action to tree view
Otherwise it triggers when trying to delete characters in the editor.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 92f840799f..1e47b20aba 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -561,7 +561,8 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_delete_action() } } } - }); + }, + m_project_tree_view); delete_action->set_enabled(false); return delete_action; } |