mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +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:
parent
c4b1456c88
commit
b1763238d7
3 changed files with 19 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue