summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-30 16:12:49 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-30 23:34:40 +0100
commitd3bd9f1f0c47dae2138fd3e441084727e5fd9046 (patch)
tree4e9da17cea19e96b8f8b7d8494c690fc9347d159 /Userland/DevTools/HackStudio
parent354c4690d23ffa827be4b3ee841a626efd2583b8 (diff)
downloadserenity-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/DevTools/HackStudio')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp3
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;
}