mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +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
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