summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-09-04 15:45:49 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-04 21:48:27 +0200
commitdcc9db48c574605b301f58314eb0e98abee44135 (patch)
tree8d08117d6a3c36c945a5e57757f0a958149c53e8 /Userland/DevTools
parent964249a5b01792b080ba328856e0724b85065914 (diff)
downloadserenity-dcc9db48c574605b301f58314eb0e98abee44135.zip
HackStudio: Drop files to the selected editor
Previously, the files were opened in the current editor, instead of one that received a drop event.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/Editor.cpp1
1 files changed, 1 insertions, 0 deletions
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<EditorWrapper*>(parent()));
open_file(urls.first().path());
}
}