1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

HackStudio: do not toggle_index in open_project

When opening a new project `m_prject_tree_view->toggle_index()` is not
needed because `m_project_tree_view->set_model()` already updates the
indexes.
This commit is contained in:
Matteo Sozzi 2021-01-30 13:36:58 +01:00 committed by Andreas Kling
parent d9c5fdf5d5
commit f80b40b411

View file

@ -190,7 +190,6 @@ void HackStudioWidget::open_project(const String& root_path)
ASSERT(m_project);
if (m_project_tree_view) {
m_project_tree_view->set_model(m_project->model());
m_project_tree_view->toggle_index(m_project_tree_view->model()->index(0, 0));
m_project_tree_view->update();
}
if (Debugger::is_initialized()) {