summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/HackStudioWidget.cpp
diff options
context:
space:
mode:
authorLennon Donaghy <donaghylennon@gmail.com>2022-06-19 18:37:46 +0100
committerSam Atkins <atkinssj@gmail.com>2022-06-30 14:38:09 +0100
commitd2aafe58c9c2a83465fb7c8fa8d6d0c9a41701d1 (patch)
treea42e9b54edff43d8788df4dbf4a8b3f6d5a3c161 /Userland/DevTools/HackStudio/HackStudioWidget.cpp
parent010190beb88b72b8b1735760041d3cd44f7d32ce (diff)
downloadserenity-d2aafe58c9c2a83465fb7c8fa8d6d0c9a41701d1.zip
HackStudio: Leave one editor tab open on closing project
Diffstat (limited to 'Userland/DevTools/HackStudio/HackStudioWidget.cpp')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index 7f84e59d57..96f50ea8ae 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -1543,10 +1543,10 @@ void HackStudioWidget::stop_debugger_if_running()
void HackStudioWidget::close_current_project()
{
m_editors_splitter->remove_all_children();
+ add_new_editor_tab_widget(*m_editors_splitter);
m_all_editor_wrappers.clear();
m_open_files.clear();
m_open_files_vector.clear();
- add_new_editor(*m_current_editor_tab_widget);
m_find_in_files_widget->reset();
m_todo_entries_widget->clear();
m_terminal_wrapper->clear_including_history();