1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

TextEditor: Fix nullptr refrence to save action & m_path (#364)

We forgot to persist our actions in the constructor for later reference, whoops.
Also use the correct path in the "open" action.
This commit is contained in:
Rhin 2019-07-25 23:48:39 -05:00 committed by Andreas Kling
parent 4316fa8123
commit d6cd98cfa1
2 changed files with 16 additions and 13 deletions

View file

@ -19,4 +19,8 @@ private:
GTextEditor* m_editor { nullptr };
String m_path;
RefPtr<GAction> m_new_action;
RefPtr<GAction> m_open_action;
RefPtr<GAction> m_save_action;
RefPtr<GAction> m_save_as_action;
};