diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 2bcbdfe0d0..2effe95615 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -672,7 +672,7 @@ void HackStudioWidget::create_project_tree_view(GUI::Widget& parent) }; m_project_tree_view->on_activation = [this](auto& index) { - auto filename = index.data(GUI::ModelRole::Custom).to_string(); + auto filename = index.data().as_string(); open_file(filename); }; }