mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
HackStudio: Don't crash when invalid file is requested to be opened
Previously, if the running debugger asked for HackStudio to open an invalid file, it would crash trying to switch to it. Now it will just continue without switching the editor.
This commit is contained in:
parent
7a1396f509
commit
e0be8a3f59
Notes:
sideshowbarker
2024-07-18 19:26:40 +09:00
Author: https://github.com/FalseHonesty
Commit: e0be8a3f59
Pull-request: https://github.com/SerenityOS/serenity/pull/6353
Reviewed-by: https://github.com/bgianfo ✅
2 changed files with 11 additions and 8 deletions
|
@ -53,7 +53,7 @@ class HackStudioWidget : public GUI::Widget {
|
|||
|
||||
public:
|
||||
virtual ~HackStudioWidget() override;
|
||||
void open_file(const String& filename);
|
||||
bool open_file(const String& filename);
|
||||
|
||||
void update_actions();
|
||||
Project& project();
|
||||
|
@ -106,7 +106,7 @@ private:
|
|||
NonnullRefPtr<GUI::Action> create_set_autocomplete_mode_action();
|
||||
|
||||
void add_new_editor(GUI::Widget& parent);
|
||||
NonnullRefPtr<EditorWrapper> get_editor_of_file(const String& file_name);
|
||||
RefPtr<EditorWrapper> get_editor_of_file(const String& file_name);
|
||||
String get_project_executable_path() const;
|
||||
|
||||
void on_action_tab_change();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue