mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:47:45 +00:00
GMLPlayground: Keep a RefPtr to the "Save As..." action
Previously, the Save action held a reference to the local variable for the Save As action, which goes out of scope at the end of `initialize_menubar()`. This meant that if you tried to Save a new file, it would instead crash and yeet your work into the abyss.
This commit is contained in:
parent
e02b2a7b9a
commit
ca3e0288e9
2 changed files with 5 additions and 4 deletions
|
@ -35,6 +35,7 @@ private:
|
|||
virtual void drop_event(GUI::DropEvent&) override;
|
||||
|
||||
RefPtr<GUI::Action> m_save_action;
|
||||
RefPtr<GUI::Action> m_save_as_action;
|
||||
RefPtr<GUI::TextEditor> m_editor;
|
||||
RefPtr<GUI::Toolbar> m_toolbar;
|
||||
RefPtr<GUI::Splitter> m_splitter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue