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:
parent
4316fa8123
commit
d6cd98cfa1
2 changed files with 16 additions and 13 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue