From d3bd9f1f0c47dae2138fd3e441084727e5fd9046 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 30 Nov 2021 16:12:49 +0100 Subject: [PATCH] HackStudio: Scope the "delete file from project" action to tree view Otherwise it triggers when trying to delete characters in the editor. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 HackStudioWidget::create_delete_action() } } } - }); + }, + m_project_tree_view); delete_action->set_enabled(false); return delete_action; }