diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-27 20:37:41 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-27 20:39:01 +0200 |
commit | b1763238d79a9831d2965f4c26b4d7dd51dd1422 (patch) | |
tree | bbb4c3bae22dbc61d1ee886f08a4e96705f84c72 /Applications/TextEditor/TextEditorWidget.h | |
parent | c4b1456c885619a4ef0bcfb11791f53010a2f5ba (diff) | |
download | serenity-b1763238d79a9831d2965f4c26b4d7dd51dd1422.zip |
TextEditor: Ask the user before closing a dirty (modified) document
It's a little unfortunate that we have two separate code paths that can
lead to asking the user about this. Longer-term we should find a way to
unify these things.
Fixes #491.
Diffstat (limited to 'Applications/TextEditor/TextEditorWidget.h')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.h b/Applications/TextEditor/TextEditorWidget.h index 3b44a667c1..aafc6c8367 100644 --- a/Applications/TextEditor/TextEditorWidget.h +++ b/Applications/TextEditor/TextEditorWidget.h @@ -16,6 +16,7 @@ public: TextEditorWidget(); virtual ~TextEditorWidget() override; void open_sesame(const String& path); + bool request_close(); private: void set_path(const FileSystemPath& file); |