1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

HackStudio: Drop files to the selected editor

Previously, the files were opened in the current editor, instead of one
that received a drop event.
This commit is contained in:
Karol Kosek 2021-09-04 15:45:49 +02:00 committed by Andreas Kling
parent 964249a5b0
commit dcc9db48c5

View file

@ -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());
}
}