mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +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:
parent
964249a5b0
commit
dcc9db48c5
Notes:
sideshowbarker
2024-07-19 17:15:22 +09:00
Author: https://github.com/krkk
Commit: dcc9db48c5
Pull-request: https://github.com/SerenityOS/serenity/pull/9823
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
GUI::MessageBox::show(window(), "HackStudio can only open one file at a time!", "One at a time please!", GUI::MessageBox::Type::Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
set_current_editor_wrapper(static_cast<EditorWrapper*>(parent()));
|
||||||
open_file(urls.first().path());
|
open_file(urls.first().path());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue