diff options
author | Matteo Sozzi <sozziteo@googlemail.com> | 2021-01-30 13:36:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-30 14:08:41 +0100 |
commit | f80b40b4115e510c33712dd29f8f7509b850ffd3 (patch) | |
tree | 71d0f307dab38cf9286160762b2f65fc79555f7e /Userland | |
parent | d9c5fdf5d50dca0749bbcc0015c8f5285d384336 (diff) | |
download | serenity-f80b40b4115e510c33712dd29f8f7509b850ffd3.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 15dfd5a7d9..9b14a23a13 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -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()) { |