diff options
author | Sam Atkins <github@samatkins.co.uk> | 2021-06-09 17:07:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-09 18:53:13 +0200 |
commit | 6f92d1e63957b524746c12fa9a31e96cd3296a6f (patch) | |
tree | 0a6352c060b36269978037d42e7ecb0530cd1efb /Ports | |
parent | 5b47e9b39a1ff0b95c34d2870e713e128b6521b0 (diff) | |
download | serenity-6f92d1e63957b524746c12fa9a31e96cd3296a6f.zip |
LibGUI: Set TextEditor to unmodified after saving size=0 files
This fixes #7946
Previously, TextEditor::write_to_file() would not mark its document
as unmodified if the file size was 0. This caused a desync in the
Text Editor app between the window's is_modified state and the
TextEditor's. It's already noted in the comments of the app's
save action code that propagating the modified state automatically
would be good, and it would solve issues like this, but I'm not yet
familiar enough with the code to try a change like that.
Diffstat (limited to 'Ports')
0 files changed, 0 insertions, 0 deletions