diff options
author | Rhin <ryanrhin@gmail.com> | 2019-07-25 23:48:39 -0500 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-26 06:48:39 +0200 |
commit | d6cd98cfa1a81a916a1c86551f33f57a870809d0 (patch) | |
tree | b1bcc40f09983efaae502f15bb4163f8e67395d4 /Applications/TextEditor/TextEditorWidget.h | |
parent | 4316fa8123786c4324b8a35ac5987af80519e00f (diff) | |
download | serenity-d6cd98cfa1a81a916a1c86551f33f57a870809d0.zip |
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.
Diffstat (limited to 'Applications/TextEditor/TextEditorWidget.h')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.h b/Applications/TextEditor/TextEditorWidget.h index cfeb335ee2..7515a984bb 100644 --- a/Applications/TextEditor/TextEditorWidget.h +++ b/Applications/TextEditor/TextEditorWidget.h @@ -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; }; |