From 77d462426bb5dcc20c98768e1d84a9d8ea605830 Mon Sep 17 00:00:00 2001 From: Itamar Date: Sat, 8 May 2021 12:20:11 +0300 Subject: [PATCH] HackStudio: Remove redundant insertion to m_open_files previous_open_project_file already exists in m_open_files under the active_file() key. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 24214c5acc..099df50b11 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -223,7 +223,6 @@ bool HackStudioWidget::open_file(const String& full_filename) // Update the scrollbar values of the previous_open_project_file and save them to m_open_files. previous_open_project_file->vertical_scroll_value(current_editor().vertical_scrollbar().value()); previous_open_project_file->horizontal_scroll_value(current_editor().horizontal_scrollbar().value()); - m_open_files.set(active_file(), previous_open_project_file); } RefPtr new_project_file = nullptr;