diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index bbceccb44e..13ebbd5165 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -695,8 +695,8 @@ void HackStudioWidget::create_project_tree_view(GUI::Widget& parent) }; m_project_tree_view->on_activation = [this](auto& index) { - auto filename = index.data().as_string(); - open_file(filename); + auto full_path_to_file = m_project->model().full_path(index); + open_file(full_path_to_file); }; }