From b1763238d79a9831d2965f4c26b4d7dd51dd1422 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 27 Aug 2019 20:37:41 +0200 Subject: 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. --- Applications/TextEditor/TextEditorWidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Applications/TextEditor/TextEditorWidget.h') 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); -- cgit v1.2.3