1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

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.
This commit is contained in:
Andreas Kling 2019-08-27 20:37:41 +02:00
parent c4b1456c88
commit b1763238d7
3 changed files with 19 additions and 4 deletions

View file

@ -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);