From dcc9db48c574605b301f58314eb0e98abee44135 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 4 Sep 2021 15:45:49 +0200 Subject: [PATCH] HackStudio: Drop files to the selected editor Previously, the files were opened in the current editor, instead of one that received a drop event. --- Userland/DevTools/HackStudio/Editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index b8c37053d1..d9d6c87e93 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -357,6 +357,7 @@ void Editor::drop_event(GUI::DropEvent& event) GUI::MessageBox::show(window(), "HackStudio can only open one file at a time!", "One at a time please!", GUI::MessageBox::Type::Error); return; } + set_current_editor_wrapper(static_cast(parent())); open_file(urls.first().path()); } }