summaryrefslogtreecommitdiff
path: root/Applications/TextEditor/TextEditorWidget.h
diff options
context:
space:
mode:
authorRhin <ryanrhin@gmail.com>2019-07-25 23:48:39 -0500
committerAndreas Kling <awesomekling@gmail.com>2019-07-26 06:48:39 +0200
commitd6cd98cfa1a81a916a1c86551f33f57a870809d0 (patch)
treeb1bcc40f09983efaae502f15bb4163f8e67395d4 /Applications/TextEditor/TextEditorWidget.h
parent4316fa8123786c4324b8a35ac5987af80519e00f (diff)
downloadserenity-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.h4
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;
};